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.

educepatchThe number of output triangles may not be exactly the number specified withthe reduction factor argument (r), particularly if the faces of the original patchare not triangles.Examples This example illustrates the effect of reducing the number of faces to only 15%of the original value.[x,y,z,v] = flow;p = patch(isosurface(x,y,z,v,-3));set(p,'facecolor','w','EdgeColor','b');daspect([1,1,1])view(3)figure;h = axes;p2 = copyobj(p,h);reducepatch(p2,0.15)daspect([1,1,1])view(3)Before Reduction3210−1−2−3420−2−402468102-401

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

Saved successfully!

Ooh no, something went wrong!