3-D Visualization | ![]() ![]() |
Example -- Displaying Real Objects
If you want to display an object so that it looks realistic, you need to change MATLAB defaults. For example, this data defines a wedge-shaped patch object.
However, this axes distorts the actual shape of the solid object defined by the data. To display it in correct proportions, set the DataAspectRatio
.
The units are now equal in the x-, y-, and z-directions and the axes is not being stretched to fill the position rectangle, revealing the true shape of the object.
![]() | Example -- Displaying Cross-Sections of Surfaces | Lighting as a Visualization Tool | ![]() |
© 1994-2005 The MathWorks, Inc.