Cylcoords - z1=r; %cone z2=1+sqrt(1-r.^2); % hemisphere z...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%The following scrip is useful for plotting cylindrical surfaces. % %The example given plots the ice cream cone from lecture and %shows the projection of the polar grid in the xy-plane % [r,theta]=meshgrid(0:.1:1,0:pi/10:2*pi);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: z1=r; %cone z2=1+sqrt(1-r.^2); % hemisphere z %convert to rectangular x=r.*cos(theta); y=r.*sin(theta); y %plot the shape hold off; mesh(x,y,z1*0); %projection hold on; surf(x,y,z1); %cone surf(x,y,z2); %hemi-sphere s...
View Full Document

This note was uploaded on 12/25/2009 for the course MATH 1920 taught by Professor Pantano during the Spring '06 term at Cornell University (Engineering School).

Ask a homework question - tutors are online