Swap double array dimensions

조회 수: 27 (최근 30일)
Rona Shaharabani
Rona Shaharabani 2020년 6월 14일
댓글: Matt J 2020년 6월 14일
I have an 288x384x52 double array which I would like to transform to 288x52x384 double
  댓글 수: 1
Rona Shaharabani
Rona Shaharabani 2020년 6월 14일
Thank you. I tried that, and it did not give an array of 288x52x384 instead

댓글을 달려면 로그인하십시오.

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by