Recitation 04 Presentation

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

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

14:440:127 Introduction to Computers for Engineers Recitation 4

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

View Full Document
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
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

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

View Full Document
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
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)

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

View Full Document
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
Ask a homework question - tutors are online