MATLAB Answers

How to reshape a (1*200) matrix to (25*8)matrix?

1 view (last 30 days)
Sarah A
Sarah A on 5 Sep 2019
Commented: Sarah A on 5 Sep 2019
Hello,
Suppose that we already have a (1*200) matrix, how we could reshape it to a (25*8) matrix?
Regards,

  2 Comments

Adam
Adam on 5 Sep 2019
What is wrong with the obvious:
reshape( myMatrix, [25 8] )
where myMatrix is your 1x200 matrix? It depends, of course, whether you wnat it reshaped along columns or rows first, but you didn't specify.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!