此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)
Mathematica HowTo
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[1]:=
Click for copyable input
Out[1]=
Use Table with two variable to make a 2D table of values (stored as m):
In[2]:=
Click for copyable input
Out[2]=
Use Grid to put the values in a grid:
In[3]:=
Click for copyable input
Out[3]=
Use an option to put in a frame:
In[4]:=
Click for copyable input
Out[4]=
    
Tables in Mathematica can contain arbitrary elements. Make a Table with Plot, and use ImageSize to control the size of the output:
In[5]:=
Click for copyable input
Out[5]=
    
You can also create a Table using an arbitrary list of values for the table iterator (in this case, q):
In[6]:=
Click for copyable input
Out[6]=