Convert row or coloumn matrix into rowXcoloumn matrix
1 次查看(过去 30 天)
显示 更早的评论
Hi
I need to convert row matrix

into

How to convert like this. I am struck with logic.
0 个评论
采纳的回答
David K.
2019-9-26
I would do it as such:
P = 1:10;
out = reshape(P,[2,5]);
out = out'; % Take transpose
更多回答(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!