See other catalogues for
The MathWorks
You may also be interested in
Text version of the page
| | | | | | | | | | | | | | | | | |
| | | |
| | | hgtransform | | |
| | | |
| | | • You cannot transform image objects because images are not true 3-D objects. Texture mapping the image data to a surface CData enables you to produce the effect of transforming an image in 3-D space. | | |
| | | |
| | | Note Many plotting functions clear the axes (i.e., remove axes children) before drawing the graph. Clearing the axes also deletes any hgtransform objects in the axes. | | |
| | | |
| | | More Information • The references in the "See Also" on page 2-1599 section for information on types of transforms • The "Examples" on page 2-1595 section provides examples that illustrate the use of transforms. Examples Transforming a Group of Objects This example shows how to create a 3-D star with a group of surface objects parented to a single hgtransform object. The hgtransform object is then rotated about the z-axis while its size is scaled. | | |
| | | |
| | | Note If you are using the MATLAB help browser, you can run this example or open it in the MATLAB editor. | | |
| | | |
| | | 1 Create an axes and adjust the view. Set the axes limits to prevent auto limit selection during scaling. ax = axes('XLim',[-1.5 1.5],'YLim',[-1.5 1.5],... 'ZLim',[-1.5 1.5]); view(3); grid on; axis equal 2 Create the objects you want to parent to the hgtransform object. [x y z] = cylinder([.2 0]); | | |
| | | |
| | | 2-1595 | | |
| | | |
| | | | | | | | | | | | | | | | | |