plot(x,y,z)

  • Will plot X versus Y. If Y is omitted, the function will plot X versus size(X).
  • Z parameter will change the format of the plot. It is a character string. For example, Z = 'b*' will plot using blue stars. For all possible options, check the help page for plot

semilogx(x,y,z)

  • Creates plot with logarithmic scale for x

semilogy(x,y,z)

  • Creates plot with logarithmic scale for y

loglog(x,y,z)

  • Creates plot with logarithmic scales for both x and y

plot(x1,y1,z1,x2,y2,z2...xn,yn,zn)

  • Will plot multiple curves on one graph where X, Y and Z each correspond to one individual curve.

subplot(y,x,z)

  • Will allow you to plot many graphs at once. X and Y are the number of graphs in each row and column, respectively. Z is the current graph that the plot() command will affect.
  • To change which plot to modify, you must reuse the subplot command with the same X and Y, and change the Z value to the plot you wish to modify

xlabel('label'),ylabel('label')

  • Changes the label for the x and y axis on the current graph.

title('label')

  • Changes the title of the current graph.

grid on/ grid off/ grid minor

  • Turns a grid on or off. grid minor adds more lines to the plot.

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett