lecture_12

lecture_12 - Lecture 12 Comp 116 Feb 13th 2009 Till now...

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

View Full Document Right Arrow Icon
Click to edit Master subtitle style 10/6/09 Lecture 12 Comp 116 Feb 13th , 2009
Background image of page 1

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

View Full DocumentRight Arrow Icon
10/6/09 Till now … constants, variables, data types number systems expressions vectors, matrices strings logical expressions conditional statements, loop statements plotting
Background image of page 2
10/6/09 Questions related to previous topics Quizzes and assignments … Quiz 2 solution
Background image of page 3

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

View Full DocumentRight Arrow Icon
10/6/09 Plotting plot(x,y) plots y against x plot(x1,y1, x2,y2) plots y1 against x1, y2 against x2 on same axis hold on multiple plots plot(x1, y1); hold on; plot(x2, y2); hold off;
Background image of page 4
10/6/09 Plotting plot(x, y, ‘ color ’, [1 0 0]); Plot using red color Also plot(x,y, ‘r’) h = plot(…) h plot handle - can use to set properties set(h, ‘PropertyName’, PropertyValue )
Background image of page 5

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

View Full DocumentRight Arrow Icon
10/6/09 Multiple plots in a figure? subplot reading? subplot(m,n,p) creates a figure with mxn plots and selects the pth plot.
Background image of page 6
10/6/09 BullsEye example Two variables at the
Background image of page 7

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

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

This note was uploaded on 03/22/2009 for the course COMP 116 taught by Professor Stotts during the Spring '08 term at UNC.

Page1 / 20

lecture_12 - Lecture 12 Comp 116 Feb 13th 2009 Till now...

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

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