14-440-127 Lecture 4 Presentation

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

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

View Full Document Right Arrow Icon
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
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 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!
Background image of page 2
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)
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 Lecture 4 Use linspace or colon to create x xpoints = linspace(0,20,100); ypoints = x.^3; plot(xpoints, ypoints)
Background image of page 4
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
Background image of page 5

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 Lecture 4 Changing C o l o r s x = linspace(0,20,100); y = x.^3; plot(xpoints, ypoints,'--dg')
Background image of page 6
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)
Background image of page 7

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 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')
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

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 Right Arrow Icon
Ask a homework question - tutors are online