MATLAB 一维数组转成多维数组

>> a=[1 2 3 4 5 6];
>> b=reshape(a,3,2)

b =

1 4
2 5
3 6

>> c=reshape(a,2,3)

c =

1 3 5
2 4 6

猜你喜欢

转载自blog.csdn.net/m0_37964922/article/details/89153209