Recitation 04 Presentation

Recitation 04 Presentation - 14:440:127 Introduction to...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
14:440:127 Introduction to Computers for Engineers Recitation 4
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Rutgers University SOE 14:440:127 Recitation 4 Simple 2-D Plotting & Function Plots 2-D Plotting xpoints = [ 1 2 3 4 5 ]; ypoints = [ 6 8 9 12 15 ]; plot(xpoints, ypoints) Function Plot fplot('sin(x)',[-2*pi,2*pi]) % note that sin(x) must be in single quotes % -2pi,2pi is the interval for x
Background image of page 2
Rutgers University SOE 14:440:127 Recitation 4 Titles, Labels, Grids, Legend x = linspace(0,20,100); y = x.^3; plot(x, y) title('X Cubed') xlabel('X Points') ylabel('Y Points') legend('Growth of Students'' Matlab Skill') grid on
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Rutgers University SOE 14:440:127 Recitation 4 LineSpec x = linspace(0,20,100); y = x.^3; plot(xpoints, ypoints,'--dg') Search for LineSpec for more information on line style
Background image of page 4
14:440:127 Recitation 4 Opening Multiple Windows of Graphs figure(1) plot(xpoints, ypoints) figure(2) plot(x,y) figure(1) % go back and overwrite the first figure plot(x,y)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/11/2010 for the course 440 127 taught by Professor Blase during the Fall '09 term at Rutgers.

Page1 / 14

Recitation 04 Presentation - 14:440:127 Introduction to...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online