How to create 4D matrix with several 3D matrix??

12 ビュー (過去 30 日間)
SEO BOIL
SEO BOIL 2022 年 1 月 26 日
編集済み: Stephen23 2022 年 1 月 26 日
I want to create 4D matrix (Nx150x150x150) with N of 3D matrix (150x150x150).
Could you give me some advice??

採用された回答

Stephen23
Stephen23 2022 年 1 月 26 日
編集済み: Stephen23 2022 年 1 月 26 日
C = {all of your N 3D array in one cell array};
A = permute(cat(4,C{:}),[4,1,2,3]);
But it would be simpler and more efficient to create a 150x150x150xN array:
A = cat(4,C{:});

その他の回答 (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