フィルターのクリア

Creating a 3D matrix from multiple 2D matricies

9 ビュー (過去 30 日間)
Robert
Robert 2014 年 10 月 7 日
コメント済み: Image Analyst 2021 年 6 月 24 日
I have 12 matrices, all 35x43. I want to make them into one 35x43x12 matrix. What is the best way to do so?
I am very new to matlab, so would appreciate as much step by step detail as possible
Thanks in advance for any help!

回答 (1 件)

Image Analyst
Image Analyst 2014 年 10 月 7 日
array3d = cat(3, array1, array2, array3, array4, array5, array6,...
array7, array8, array9, array10, array11, array12);
  2 件のコメント
S Ch
S Ch 2021 年 6 月 24 日
@Image Analyst Hello, how about having 100 arrays, how can we use cat ? thanks in advance.
Image Analyst
Image Analyst 2021 年 6 月 24 日
If you were unwise enough to generate 100 differently named individual arrays, then you have to pay the price by calling cat() with 100 differently named arrays as arguments. Hopefully then you'll learn not to make variables like that and just make them in a 3-D array in the first place.

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

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by