11.5 Entering Tables and Matrices
The Mathematica TE front end typically provides a Create Table/Matrix/Palette menu command that allows you to create a blank array with any specified number of rows and columns. Once you have such an array, you can then edit it to fill in whatever elements you want.
Mathematica TE treats an array like this as a matrix represented by a list of lists.
In[1]:=
Out[1]=
Putting parentheses around the array makes it look more like a matrix, but does not affect its interpretation.
In[2]:=
Out[2]=
Using MatrixForm tells Mathematica TE to display the result of the Transpose as a matrix.
In[3]:=
Out[3]//MatrixForm=
Entering tables and matrices.
Note that you can use
, and
to start building up an array, and particularly for small arrays this is often more convenient than using the Create Table/Matrix/Palette menu command. The Create Table/Matrix/Palette menu command also allows you to make basic adjustments, such as drawing lines between rows or columns.