lecture_10

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

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

Click to edit Master subtitle style 10/6/09 Lecture 10 Comp 116 Feb 8th, 2009

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

View Full Document
10/6/09 Objectives Plotting 2D plots – line, bar, pie changing properties
10/6/09 Plotting

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

View Full Document
10/6/09 Plotting plot(x, y) plot(x1, y1, x2, y2, x3, y3) plot(x, M) M has data stored in rows
10/6/09 Overlaid plots Multiple lines plot(x1, y1); hold on; plot(x2, y2); hold off;

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

View Full Document
10/6/09 Styles Plot style plot(x, y, 'r.-') Color, Marker, Line
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, …);

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

View Full Document
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
10/6/09 Plot: colors

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