MATLAB Answers

Convert row or coloumn matrix into rowXcoloumn matrix

1 view (last 30 days)
kamal
kamal on 26 Sep 2019
Commented: KALYAN ACHARJYA on 26 Sep 2019
Hi
I need to convert row matrix
row_matrix.PNG
into
changed.PNG
How to convert like this. I am struck with logic.

  0 Comments

Sign in to comment.

Accepted Answer

David K.
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

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2014b