Convert row or coloumn matrix into rowXcoloumn matrix
1 view (last 30 days)
Show older comments
Hi
I need to convert row matrix
into
How to convert like this. I am struck with logic.
0 Comments
Accepted Answer
David K.
on 26 Sep 2019
I would do it as such:
P = 1:10;
out = reshape(P,[2,5]);
out = out'; % Take transpose
1 Comment
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!