Convert row or coloumn matrix into rowXcoloumn matrix

Hi
I need to convert row matrix
row_matrix.PNG
into
changed.PNG
How to convert like this. I am struck with logic.

 Accepted Answer

I would do it as such:
P = 1:10;
out = reshape(P,[2,5]);
out = out'; % Take transpose

More Answers (0)

Products

Release

R2014b

Asked:

on 26 Sep 2019

Commented:

on 26 Sep 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!