reshape([1;2;3;4;5;6;7;8;9],3,[])
Info
此问题已关闭。 请重新打开它进行编辑或回答。
Sorting a m x n matrix
2 次查看(过去 30 天)
显示 更早的评论
I have an M x N array for example ;
[1;2;3;4;5;6;7;8;9]
and i want to sort it into the format where the first three values become the first column,then 4 5 6 are the second column etc. So it will output
[1 4 7; 2 5 8; 3 6 9]
Is there a function that can do this, or how should I approach this?
0 个评论
回答(1 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!