input:import data2. transpose the data3. reshape the data into arraycode: matlabload x.dat X=x.dat; X=X.' % transpose; x_array=reshape(X, 499, [])