HW#2_2nd question

HW#2_2nd question - 2 a subplot 1>> x=-4:0.75:4>>

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: 2. a. subplot 1 >> x=-4:0.75:4; >> y=-4:0.75:4; >> [X_var,Y_var]=meshgrid(x,y) >> [X_var,Y_var]=meshgrid(x,y); >>Z= X_var.*Y_var.*(sin(sqrt(X_var.^2+Y_var.^2)))/sqrt(X_var.^2+Y_var.^2+1); >> subplot(3,2,1) >> mesh(X_var,Y_var,Z) b. subplot 2 >>subplot(3,2,2) >> surf(X_var,Y_var,Z) c. subplot 3 >>subplot(3,2,3) >> surf(Z) d. subplot 4 >>subplot(3,2,4) >> surf(X_var,Y_var,Z); >> shading interp e. subplot 5 >> subplot(3,2,5) >> contour(Z,-2:0.5:2) x 10 1 0 -1 5 12 m e s h p lo t(X v a r,Y v a r,Z ) 1 0 -1 5 x 10 12 s u rfp lo t(X v a r,Y v a r,Z ) 0 -5 - 5 x 10 1 0 -1 20 10 00 c o n to u rp lo t(Z ) 10 8 6 4 2 2 4 6 8 5 12 5 0 0 -5 -5 x 10 1 0 -1 5 0 -5 -5 12 5 0 s u rfp lo t(Z ) s h a d in g p lo t(X v a r,Y v a r,Z ) 10 15 5 0 10 ...
View Full Document

This note was uploaded on 01/30/2011 for the course PGE 323K taught by Professor Lake during the Spring '08 term at University of Texas.

Page1 / 3

HW#2_2nd question - 2 a subplot 1>> x=-4:0.75:4>>

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

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