12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

subvolume• A 100-element grayscale colormap provides coloring for the end caps(colormap).• Adding lights to the right and left of the camera illuminates the object(camlight, lighting).load mriD = squeeze(D);[x,y,z,D] = subvolume(D,[60,80,nan,80,nan,nan]);p1 = patch(isosurface(x,y,z,D, 5),...’FaceColor’,’red’,’EdgeColor’,’none’);isonormals(x,y,z,D,p1);p2 = patch(isocaps(x,y,z,D, 5),...’FaceColor’,’interp’,’EdgeColor’,’none’);view(3); axis tight; daspect([1,1,.4])colormap(gray(100))camlight right; camlight left; lighting gouraudSee Alsoisocaps, isonormals, isosurface, reducepatch, reducevolume, smooth32-467

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!