14-440-127 Lecture 4 Presentation

# 14-440-127 Lecture 4 Presentation - 14:440:127 Introduction...

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

14:440:127 Introduction to Computers for Engineers Lecture 4 Lecturer: Blase E. Ur Recitation Instructor: Tianming Li Recitation Instructor: Ke Xu Recitation Instructor: Brian Viezbicke Recitation Instructor: Mingliang Wang PLEASE TAKE LECTURE 4 NOTES AS YOU ENTER THE ROOM

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

View Full Document
Rutgers University SOE 14:440:127 Lecture 4 Reminders / Updates Project 1 due Sunday Night 11:59 PM for everyone. No late work. Know how Sakai works (click box for pledge, make sure you receive an email). Answers to last week’s recitation problems and PSet1 will be posted today or tomorrow. First Exam- Next week. Your first recitation in the month of October will be your exam!
Rutgers University SOE 14:440:127 Lecture 4 2-D Plot • Arguments: Vector of x points, Vector of y points xpoints = [ 1 2 3 4 5 ]; ypoints = [ 6 8 9 12 15 ]; plot(xpoints, ypoints)

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

View Full Document
Rutgers University SOE 14:440:127 Lecture 4 Use linspace or colon to create x xpoints = linspace(0,20,100); ypoints = x.^3; plot(xpoints, ypoints)
Rutgers University SOE 14:440:127 Lecture 4 Adding Titles and Labels for Axes x = linspace(0,20,100); y = x.^3; plot(xpoints, ypoints) title('X Cubed') xlabel('X Points') ylabel('Y Points') grid on

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

View Full Document
Rutgers University SOE 14:440:127 Lecture 4 Changing C o l o r s x = linspace(0,20,100); y = x.^3; plot(xpoints, ypoints,'--dg')
Rutgers University SOE 14:440:127 Lecture 4 Multiple Windows 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
Rutgers University SOE 14:440:127 Lecture 4 Multiple Graphs in One Figure- Method 1 x1 = 1:0.1:10; x2 = 1.5:0.1:10; y1 = 3*x1.^2; y2 = 3.5*x2.^(1.5); plot(x1,y1,x2,y2) legend('first line', 'second line')
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 32

14-440-127 Lecture 4 Presentation - 14:440:127 Introduction...

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

View Full Document
Ask a homework question - tutors are online