看看这是不是你想要的:
A = magic(3); % example matrix
B = A.'; % transpose
B = B(:); % linearize in column-major order
这转变
A =
8 1 6
3 5 7
4 9 2
进入
B =
8
1
6
3
5
7
4
9
2
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句