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.

surf2patchAlso, because patch is a low-level command, you must set the view to 3-D andshading to faceted to produce the same results produced by the surfcommand.[x y z] = sphere;patch(surf2patch(x,y,z,z));shading faceted; view(3)In the second example surf2patch calculates face, vertex, and color data froma surface whose handle has been passed as an argument.s = surf(peaks);pausepatch(surf2patch(s));delete(s)shading faceted; view(3)See Alsopatch, reducepatch, shrinkfaces, surface, surf2-473

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

Saved successfully!

Ooh no, something went wrong!