Quick Graphing Help

To create a simple (x,y) graph, use the following commands at the MATLAB prompt.

>>x = [x1 x2 x3 ... xn]
>>y = [y1 y2 y3 ... yn]
>>plot(x,y)

where x1, x2, etc. are the numerical values of the variables.

To create a graph with multiple data sets z1, z2, z3 versus x, enter the data as shown above and then type

>>plot(x,z1,x,z2,x,z3)


After the graph is created, you can change the line type, marker type, axis characteristics, and figure charactreistics, by using various menus, as shown in the Figure below.