Mathematica矩阵Table
Table[expr,{i,imin,imax},{j,jmin,jmax}] gives a nested list. The list associated with i is outermost.
Table[i*j, {i, 1, 2}, {j, 1, 3}] // MatrixForm
\[ \left( \begin{array}{ccc} 1 & 2 & 3 \\ 2 & 4 & 6 \\ \end{array} \right) \]
Table[expr,{i,imin,imax},{j,jmin,jmax}] gives a nested list. The list associated with i is outermost.
Table[i*j, {i, 1, 2}, {j, 1, 3}] // MatrixForm
\[ \left( \begin{array}{ccc} 1 & 2 & 3 \\ 2 & 4 & 6 \\ \end{array} \right) \]