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일

0 개 추천

permute(yourArray,[1,3,2])

댓글 수: 4

Rona Shaharabani
Rona Shaharabani 2020년 6월 14일
Thank you. I tried that and it did not give an array of 288x52x384 instead
Works fine for me:
>> A=rand(288,384,52); Aperm=permute(A,[1,3,2]); whos A Aperm
Name Size Bytes Class Attributes
A 288x384x52 46006272 double
Aperm 288x52x384 46006272 double
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개)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2020년 6월 14일

댓글:

2020년 6월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by