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.

coneplotAdd Lighting to the SceneThe light source affects both the slice planes (surfaces) and the cone plots(patches). However, you can set the lighting characteristics of eachindependently.• Add a light source to the right of the camera and use Phong lighting give thecones and slice planes a smooth, three-dimensional appearance (camlight,lighting).• Increase the value of the AmbientStrength property for each slice plane toimprove the visibility of the dark blue colors. (Note that you can also specifya different colormap to change to coloring of the slice planes.)• Increase the value of the DiffuseStrength property of the cones to brightenparticularly those cones not showing specular reflections.camlight right; lighting phongset(hsurfaces,'AmbientStrength',.6)set(hcones,'DiffuseStrength',.8)2-98

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

Saved successfully!

Ooh no, something went wrong!