{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture6

Lecture6 - EGR 106 Lecture 6 2-D Plotting Graphical...

This preview shows pages 1–9. Sign up to view the full content.

EGR 106 Lecture 6 2-D 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.3-5.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….. is limited to a single figure is tedious to repeat for other plots
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}