reshape 3d to 2d array

조회 수: 26 (최근 30일)
mohamed Faraj
mohamed Faraj 2019년 9월 4일
편집: Bruno Luong 2019년 9월 4일
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일
squeeze()
transpose()

추가 답변 (1개)

Bruno Luong
Bruno Luong 2019년 9월 4일
편집: Bruno Luong 2019년 9월 4일
Not RESHAPE, but PERMUTE (there is movement in internal storage, and it more expansive than RESHAPE)
A = permute(A, [3 2 1]);

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by