About HPC Systems Software User Guides Education Partners

  / gears / hpc / education / tutorials / mathematica / win


Introduction

Definition

Example 01

Example 02

Example 03

Example 04

Example 05

Example 06

Example 07

Example 08

Example 09

Example 10

Example 11

Example 12

Example 13

Example 14

Example 15

Example 16

Example 17

Example 18

References

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