reshape column vector data in Matlab

input:

import  data

 

2. transpose the data

3. reshape the data into array

 

code: matlab

load x.dat
X=x.dat;
X=X.'   % transpose;
x_array=reshape(X, 499, [])

 

posted @ 2019-03-07 16:20  kaiming_ai  阅读(138)  评论(0编辑  收藏  举报