{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online