Text-only Table of Contents (frame/ no frame)
(25) 2_D Plotting Overview Previous Top Next

2-D Plotting Overview


Specify x and y data
Specify title, axes labels, legends
Specify color, line style and marker symbol
Use either figure menus or commands


Plot a single data set:
plot(xdata,ydata,'color_linestyle_marker')

Plot two data sets:
plot(x1,y1,'b*-',x2,y2,'r+:')

Plot command parameters

Try:
>> help plot
>> x= -5:5;
y= x.^2;
plot(x,y,'bs:');










Previous Top Next


2D_Plotting_Overview.src  last modified Sep 29, 2009 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College