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

3 Ansichten (letzte 30 Tage)
sumeeth
sumeeth am 9 Sep. 2011
Beantwortet: Souarv De am 20 Feb. 2020
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 Kommentar
swati rani
swati rani am 25 Aug. 2017
Heyie,
could you be kind enough to share your experience, how did you resolve your problem?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 9 Sep. 2011
d=zeros(137,137,72);
for k=1:72
d(:,:,k)=rand(137);
end

Weitere Antworten (1)

Souarv De
Souarv De am 20 Feb. 2020
randi(10,137,137,72)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by