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.

mesh, meshc, meshzwireframe with hidden-surface elimination), or none when drawing a standardsee-through wireframe. The current colormap determines the edge color. Thehidden command controls the simulation of hidden-surface elimination in themesh, and the shading command controls the shading model.ExamplesProduce a combination mesh and contour plot of the peaks surface:[X,Y] = meshgrid(–3:.125:3);Z = peaks(X,Y);meshc(X,Y,Z);axis([–3 3 –3 3 –10 5])50−5−103210−1−2−3−3−2−101232-299

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

Saved successfully!

Ooh no, something went wrong!