Swap double array dimensions

27 Ansichten (letzte 30 Tage)
Rona Shaharabani
Rona Shaharabani am 14 Jun. 2020
Kommentiert: Matt J am 14 Jun. 2020
I have an 288x384x52 double array which I would like to transform to 288x52x384 double
  1 Kommentar
Rona Shaharabani
Rona Shaharabani am 14 Jun. 2020
Thank you. I tried that, and it did not give an array of 288x52x384 instead

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by