Lecture11

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

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

EGR 106 Lecture 11 Three Dimensional Plotting 3-D Line Plots Mesh and Surface Plots Special Plots View Command Textbook 10.1 – 10.4

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

View Full Document
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)
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');

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

View Full Document
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
Example: -1 x 3, 1 y 4

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

View Full Document
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
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

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.

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