Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >
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]=
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF