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

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 Exchange에서 Matrix 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