Example 01
ListPlot[{y1,y2,y3,y4,y5,y6,...}]
GIVEN: An array of data y[ ].
REQUIRED: Plot the array of data.
SOLUTION: Method one: type in your data in a cell:
y[1]=0
y[2]=1
y[3]=2
y[4]=3
y[5]=4
y[6]=5
ListPlot[{y[1],y[2],y[3],y[4],y[5]}]
SOLUTION: Method two: generate a file with nb extension and type in your commands:
File
New
Example01.nb
Enter your data as follows:
y[1]=0
y[2]=1
y[3]=2
y[4]=3
y[5]=4
y[6]=5
ListPlot[{y[1],y[2],y[3],y[4],y[5]}]
Example
Homework:
a. Increase the size of the points.
b. Label the axes
c. Add a title
d. Turn the grid on
Note:
A hard copy may be obtained by going to the pull down menu:
File
Print
Please send questions or suggestions about this web page to beatnic@aset.psu.edu
ASET | ITS | Penn State
|