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

조회 수: 7 (최근 30일)
sumeeth
sumeeth 2011년 9월 9일
답변: Souarv De 2020년 2월 20일
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일
d=zeros(137,137,72);
for k=1:72
d(:,:,k)=rand(137);
end

추가 답변 (1개)

Souarv De
Souarv De 2020년 2월 20일
randi(10,137,137,72)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by