Swap double array dimensions

26 vues (au cours des 30 derniers jours)
Rona Shaharabani
Rona Shaharabani le 14 Juin 2020
Commenté : Matt J le 14 Juin 2020
I have an 288x384x52 double array which I would like to transform to 288x52x384 double
  1 commentaire
Rona Shaharabani
Rona Shaharabani le 14 Juin 2020
Thank you. I tried that, and it did not give an array of 288x52x384 instead

Connectez-vous pour commenter.

Réponse acceptée

Matt J
Matt J le 14 Juin 2020
Modifié(e) : Matt J le 14 Juin 2020
permute(yourArray,[1,3,2])
  4 commentaires
Rona Shaharabani
Rona Shaharabani le 14 Juin 2020
You are right, I just run it again and it did change the array... Thank you so much!
Matt J
Matt J le 14 Juin 2020
You're welcome, but please Accept-click the answer to indicate that your question was resolved.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by