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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

educevolume• A 100-element grayscale colormap provides coloring for the end caps(colormap).• Adding a light to the right of the camera illuminates the object (camlight,lighting).load mriD = squeeze(D);[x,y,z,D] = reducevolume(D,[4,4,1]);D = smooth3(D);p1 = patch(isosurface(x,y,z,D, 5,'verbose'),...'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; lighting gouraud2-404

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

Saved successfully!

Ooh no, something went wrong!