How can I generate n matrices in Matlab with a  "for" loop ? For example, I want M1=zeros(4), M2=zeros(4)...... Mn=zeros(4)

It may be something like that:

for i=1:n

Mi=zeros(4)

end

but this code doesn't work

More Jean-Michel Clairand's questions See All
Similar questions and discussions