This preview shows pages 1–5. Sign up to view the full content.
Next
Previous
Section 5.7:
Plotting Data
11
Section 5.7: Plotting Data
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document Next
Previous
Section 5.7:
Plotting Data
22
‘ro’ means use red circles
a second set of data on the same plot
‘b’ means use a
blue connected line
grid means to show a grid
plotxandy.m
is in the
Chapter5 Examples folder
run
clear
at the start of an m file to clear the
workspace of any old variables
Axis sets the scale of the axes
[xmin xmax ymin ymax]
If you don’t include it, MATLAB does a
good job of choosing scales for you.
x and y vectors
A typical data plotting program
title, xlabel and ylabel are
the text labels on the graph
xdata and
ydata vectors
plot
command
Next
Previous
Section 5.7:
Plotting Data
33
"File" allows you to save the graph in
various graphic formats, like jpeg etc.
"Insert" allows you to add text
labels and other drawing
objects to the figure
Running the program: Creates a figure window
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document Next
Previous
Section 5.7:
Plotting Data
44
plotxandy2.m
is in the
Chapter5 Examples folder
Multiple figures: the figure(#) command
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 05/19/2008 for the course ENGR 25 taught by Professor All during the Spring '08 term at Lehigh University .
 Spring '08
 ALL

Click to edit the document details