reshape 3d to 2d array

19 visualizzazioni (ultimi 30 giorni)
mohamed Faraj
mohamed Faraj il 4 Set 2019
Modificato: Bruno Luong il 4 Set 2019
I have a 1 by 20 by 3 array and want to reshape it to 3 by 20 matrix

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 4 Set 2019
squeeze()
transpose()

Più risposte (1)

Bruno Luong
Bruno Luong il 4 Set 2019
Modificato: Bruno Luong il 4 Set 2019
Not RESHAPE, but PERMUTE (there is movement in internal storage, and it more expansive than RESHAPE)
A = permute(A, [3 2 1]);

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by