reshape 3d to 2d array

7 ビュー (過去 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 Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by