how to convert matrix size

조회 수: 8 (최근 30일)
Reema Alhassan
Reema Alhassan 2018년 7월 3일
댓글: Reema Alhassan 2018년 7월 3일
I have a matrix s which has the size : 2882x2575 then I convert it to 7421150x1 by this:
s1=s(:);
and I did some process... now I need to convert it back s1 to 2882x2575 how can I do this ?

채택된 답변

Stephen23
Stephen23 2018년 7월 3일
편집: Stephen23 2018년 7월 3일
reshape(s1,2882,2575)
or
reshape(s1,2575,2882).'
depending on the order you want.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by