This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
How to | Make a Table
In Mathematica, many kinds of data are stored in tables or lists. Mathematica provides many useful functions for creating and manipulating these tables.
Use Table to make a table of values for a function:
In[3]:=
Click for copyable input
Out[3]=
Use Table with two variables to make a 2D table of values (stored as ):
In[7]:=
Click for copyable input
Out[7]=
Use Grid to put the values in a grid:
In[8]:=
Click for copyable input
Out[8]=
Use an option to put in a frame:
In[9]:=
Click for copyable input
Out[9]=
    
Tables in Mathematica can contain arbitrary elements. Make a Table with Plot, and use ImageSize to control the size of the output:
In[9]:=
Click for copyable input
Out[9]=
    
You can also create a Table using an arbitrary list of values for the table iterator (in this case, ):
In[10]:=
Click for copyable input
Out[10]=