reshape 3d to 2d array

19 vues (au cours des 30 derniers jours)
mohamed Faraj
mohamed Faraj le 4 Sep 2019
Modifié(e) : Bruno Luong le 4 Sep 2019
I have a 1 by 20 by 3 array and want to reshape it to 3 by 20 matrix

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 4 Sep 2019
squeeze()
transpose()

Plus de réponses (1)

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

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by