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

조회 수: 1 (최근 30일)
Sarah A
Sarah A 2019년 9월 5일
댓글: Sarah A 2019년 9월 5일
Hello,
Suppose that we already have a (1*200) matrix, how we could reshape it to a (25*8) matrix?
Regards,
  댓글 수: 2
Adam
Adam 2019년 9월 5일
편집: Adam 2019년 9월 5일
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.
Sarah A
Sarah A 2019년 9월 5일
Thank you.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by