Swap double array dimensions

8 次查看(过去 30 天)
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 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by