Question: Creating a Matrix using nested for loops like in matlab?

Below is the code I'm trying to get working. In matlab this would be cake, but I can't seem to figure out how to get this working in Maple. Help Please.... > for j from 1 by 1 to 6 (for n by 1 to 6 do M[j,n]:=(∫)[o]^(l)(phi)[j]*(phi)[n]*p ⅆx end) end do; Error, invalid sequence for j from 1 by 1 to 6 (Typesetting:-mambiguous(for , Typesetting:-merror( Ok I also can't get my code to past in..... urgh...
Please Wait...