
3 Graphics
produces a surface with a face alpha value of 0.4. Alpha values range from 0
(completely transparent) to 1 (not transparent).
For More Information See “Transparency” in the MATLAB 3-D
Visualization documentation for details about using this feature.
Illumin
ating Surface Plots with Lig hts
Lighting is the technique of illuminating an object with a directional light
source. In certain cases, this technique can make subtle differences in
surfaceshapeeasiertosee. Lightingcanalsobeusedtoaddrealismto
three-dimensional graphs.
This example uses the same surface as the previous examples, but colors it
red and rem oves the mesh lines. A light object is then added to the left of the
“camera” (the camera is the location in space from where you are viewing
the surface):
3-66
Commentaires sur ces manuels