I have a 1 by 20 by 3 array and want to reshape it to 3 by 20 matrix

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2019년 9월 4일

1 개 추천

squeeze()
transpose()

추가 답변 (1개)

Bruno Luong
Bruno Luong 2019년 9월 4일
편집: Bruno Luong 2019년 9월 4일

1 개 추천

Not RESHAPE, but PERMUTE (there is movement in internal storage, and it more expansive than RESHAPE)
A = permute(A, [3 2 1]);

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

질문:

2019년 9월 4일

편집:

2019년 9월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by