フィルターのクリア

combine 3x3D into 4D matrix

13 ビュー (過去 30 日間)
Sean Phillips
Sean Phillips 2019 年 5 月 17 日
コメント済み: Sean Phillips 2019 年 5 月 17 日
I have 3 x 3D Matrixs of size (nrows x nfreqs x time) ie (5000 x 10 x 100)
i want to combine them into a 4D matrix of size (5000 x 3 x 10 x 1000)
ie the 5000 rows of 3D matrix are combined as 3 columns in the 4D matrix

採用された回答

Walter Roberson
Walter Roberson 2019 年 5 月 17 日
Easiest:
permute(cat(4,M1, M2, M3), [1 4 2 3])
less memory perhaps:
cat(2,reshape(M1, 5000, 1, 10, 100), reshape(M2, 5000, 1, 10, 100), reshape(M3, 5000, 1, 10, 100))
  1 件のコメント
Sean Phillips
Sean Phillips 2019 年 5 月 17 日
thank you. it works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by