This preview shows pages 1–9. Sign up to view the full content.
EGR 106 Lecture 6
2D Plotting
Graphical presentation has become the standard
method to show technical information.
Engineers use
plots to analyze, visualize, and present their work.
Matlab has
many
useful plotting options available!
We’ll review
some
of them today.
Textbook 5.1, 5.35.12
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document What Would You Rather See?
1.0000
0.8610
0.7953
0.7557
0.7328
0.7227
0.7238
0.7354
0.7571
0.7893
0.8321
0.8862
0.9520
1.0304
1.1221
1.2278
1.3485
1.4851
1.6385
1.8098
2.0000
or
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
2
1.8
1.6
1.4
1.2
1
0.8
0.6
x
y
Example Problem:
x =
–3:0.1:3;
y = x.^3 – 5*x.^2 + 4;
plot(x,y)
xlabel(
'
value of x
'
)
ylabel(
'
value of y
'
)
title(
'
Problem 10
'
)
text(0,1,
'
egr106 week 1
'
)
colon and dot
notation for
arrays
standard form
for plot
annotation tools
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document scales are
automatic
default is
Figure 1,
blue lines,
and small
text
note axis
labels & text
Matlab has interactive tools for modifying
plots within the Figure window
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document Click on the arrow to start interaction
Double click on some part of the figure to initiate choices
Modify text:
Or the lines themselves:
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
So, the
property editor
is like a spreadsheet’s
tools, but….
.
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 10/03/2011 for the course EGR 106 taught by Professor Taggart during the Spring '09 term at Rhode Island.
 Spring '09
 TAGGART

Click to edit the document details