Question: How to make a list of matrices?

Hello,

 

I have a very basic question: how to make a list of matrices?

For instance, this doesn't work:

for i from 1 to 4 do
M[i]:=Matrix(2,2,[[1,i],[i,i^2]]);

od;

 

Many thanks!

Please Wait...