MATLAB: Make several matrices in a for loop

for loopmake matrices

Make various matrices in one for loop. Hellow, its problaly very easy but i cant find it nowhere.
I want to make a program that produces several matrices. to make ten matrices i tried:
for i=0:10
matrix[i] = rand(12,12)
end
to make 10 matrices with 12×12 random numbers but i doesnt work. Thx in advance

Best Answer

for ii=0:9
matrix{ii+1} = rand(12,12);
end