MATLAB Answers

Swap double array dimensions

10 views (last 30 days)
Rona Shaharabani
Rona Shaharabani on 14 Jun 2020
Commented: Matt J on 14 Jun 2020
I have an 288x384x52 double array which I would like to transform to 288x52x384 double
  1 Comment
Rona Shaharabani
Rona Shaharabani on 14 Jun 2020
Thank you. I tried that, and it did not give an array of 288x52x384 instead

Sign in to comment.

Accepted Answer

Matt J
Matt J on 14 Jun 2020
Edited: Matt J on 14 Jun 2020
permute(yourArray,[1,3,2])
  4 Comments
Matt J
Matt J on 14 Jun 2020
You're welcome, but please Accept-click the answer to indicate that your question was resolved.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by