A = zeros(2,2,10) ;
for i = 1:10
A(:,:,i) = rand(2) ;
end
A(:,:,1)
A(:,:,3)
In your case follow:
for i=1:size(A,1)
Matrix(:,:,i)= expression ;
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!