Lecture11 - EGR 106 Lecture 11 Three Dimensional Plotting...

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

View Full Document Right Arrow Icon
EGR 106 Lecture 11 Three Dimensional Plotting 3-D Line Plots Mesh and Surface Plots Special Plots View Command Textbook 10.1 – 10.4
Background image of page 1

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

View Full Document Right Arrow Icon
3-D Line Plots Recall 2-D plotting: plot(x,y,’line specifier’,’PropertyName’,PropertyValue) Extend to 3-D: plot3(x,y,z,’line specifier’,’PropertyName’,PropertyValue)
Background image of page 2
3-D Line Plots - Example t=0:0.1:6*pi; x=sqrt(t).*sin(2*t); y=sqrt(t).*cos(2*t); z=0.5*t; plot3(x,y,z,'k','linewidth',1) grid on xlabel('x'); ylabel('y'); zlabel('z');
Background image of page 3

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

View Full Document Right Arrow Icon
Mesh and Surface Plots A function of two variables z = f(x,y) can be represented graphically as a surface. First step: Define a grid of x and y values
Background image of page 4
Example: -1 x 3, 1 y 4
Background image of page 5

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

View Full Document Right Arrow Icon
Matlab Command to Create Grid >> x= -1:3; >> y=1:4; >> [X,Y]=meshgrid(x,y) X = -1 0 1 2 3 -1 0 1 2 3 -1 0 1 2 3 -1 0 1 2 3 Y = 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 meshgrid
Background image of page 6
Making Mesh and Surface Plots Example (Gilat text 2 nd Edition’s Cover Figure): 3 3 , 3 3 ) 5 cos(. ) sin( 8 . 1 ) , ( 2 2 5 . 1 - - = + - y x y x y x z y x
Background image of page 7

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

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

{[ snackBarMessage ]}

Page1 / 26

Lecture11 - EGR 106 Lecture 11 Three Dimensional Plotting...

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