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.

shrinkfaces• Use the daspect, view, and axis commands to set up the view and then adda title.• The shrinkfaces command modifies the face/vertex data and passes itdirectly to patch.[x,y,z,v] = flow;[x,y,z,v] = reducevolume(x,y,z,v,2);fv = isosurface(x,y,z,v,-3);p1 = patch(fv);set(p1,'FaceColor','red','EdgeColor',[.5,.5,.5]);daspect([1 1 1]); view(3); axis tighttitle('Original')figurep2 = patch(shrinkfaces(fv,.3));set(p2,'FaceColor','red','EdgeColor',[.5,.5,.5]);daspect([1 1 1]); view(3); axis tighttitle('After Shrinking')Original3210−1−2−33210−1−2−324682-442

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

Saved successfully!

Ooh no, something went wrong!