Swap double array dimensions

26 ビュー (過去 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 Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by