How to create a 3D matrix using the 2D matrices

Hello All
I have 72 matrices of size 137x137 each.So i want to store these matrices in a 3D matrix with third dimension as index of each 137x137 matrix which makes a 3D matrix of size 137x137x72.
So guys do help me in sorting this out.

1 件のコメント

swati rani
swati rani 2017 年 8 月 25 日
Heyie,
could you be kind enough to share your experience, how did you resolve your problem?

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

 採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 9 月 9 日

3 投票

d=zeros(137,137,72);
for k=1:72
d(:,:,k)=rand(137);
end

その他の回答 (1 件)

Souarv De
Souarv De 2020 年 2 月 20 日

1 投票

randi(10,137,137,72)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

タグ

質問済み:

2011 年 9 月 9 日

回答済み:

2020 年 2 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by