change array into matrix
12 次查看(过去 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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!