Matrix form



Greetings everyone,


I am new to Maxima and trying to convert a do loop from Mathematica. I am trying to find a function similar to MatrixForm[%] in mathematica. MatrixForm turns an array into a matrix and the % uses the results from the previous line. I have been creating a list of lists and trying to assign it to a matrix using  aa1:matrix (aa1 is the name of the matrix) but the result is not what I expect.


To give some perspective here is the do loop from mathematica I am working with.


Do[If[i