This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %interpolated shading. Also, label each respective axis like this: %'xaxis'. Finally, title your plot 'Top'. When defining your angles for %rotation, use 100 values. %usage: makeTop(height,height2); th = linspace(0,2.*pi,100); base = 0.5.*height; u = [0 0 height 0]; v = [0 height base 0]; [uu tth] = meshgrid(u,th); [vv tth] = meshgrid(v,th); rr = uu; xx = sin(tth).*rr; yy = cos(tth).*rr; zz = vv; surf(xx,yy,zz); shading interp; xlabel('xaxis'); ylabel('yaxis'); zlabel('zaxis'); z end...
View
Full
Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.
 Spring '08
 Stallworth

Click to edit the document details