change array into matrix
6 次查看(过去 30 天)
显示 更早的评论
How to write a 4 values in rectangular grid a=[8 4 6 2]
it will become
a=
8 4
6 2
0 个评论
采纳的回答
Mischa Kim
2014-2-1
编辑:Mischa Kim
2014-2-1
b = reshape(a,2,2)
3 个评论
Mischa Kim
2014-2-1
Is this another question or are you confirming that the command does what you need it to do?
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!