lecture_10

lecture_10 - Lecture 10 Comp 116 Feb 8th 2009 Objectives...

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

View Full Document Right Arrow Icon
Click to edit Master subtitle style 10/6/09 Lecture 10 Comp 116 Feb 8th, 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 Objectives Plotting 2D plots – line, bar, pie changing properties
Background image of page 2
10/6/09 Plotting
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) plot(x1, y1, x2, y2, x3, y3) plot(x, M) M has data stored in rows
Background image of page 4
10/6/09 Overlaid plots Multiple lines plot(x1, y1); hold on; plot(x2, y2); hold off;
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 Styles Plot style plot(x, y, 'r.-') Color, Marker, Line
Background image of page 6
10/6/09 Properties Plot properties plot(x, sin(x), 'bo-', 'LineWidth', 2, 'MarkerEdgeColor', 'k', . ..'MarkerFaceColor', [0.49, 1.00, 0.63], 'MarkerSize', 12); Plot(x, y, ‘ prop1 ’, value1, ‘ prop2 ’, value2, …);
Background image of page 7

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

View Full DocumentRight Arrow Icon
10/6/09 Plot: colors Colors in MATLAB All colors are specified by how much red, green and blue are in it. [0 0 0] % black [0.5 0.5 0.5] % gray [1 1 1] % white [1 1 0] % yellow [1 0 0] % red [1 0 1] % magenta [0 1 0] % green [0 1 1] % cyan [0 0 1] % blue [95 177 225]/255 % Carolina Blue
Background image of page 8
10/6/09 Plot: colors
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
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 / 16

lecture_10 - Lecture 10 Comp 116 Feb 8th 2009 Objectives...

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

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