| Aerospace Blockset™ | ![]() |
Create 3-D MATLAB® Graphics animation of three-degrees-of-freedom object
Animation

The 3DoF Animation block displays a 3-D animated view of a three-degrees-of-freedom (3DoF) craft, its trajectory, and its target using MATLAB Graphics.
The 3DoF Animation block uses the input values and the dialog parameters to create and display the animation.
This block does not produce deployable code, but can be used with Real-Time Workshop® external mode as a SimViewingDevice.

Specifies the three-dimensional space to be viewed.
Specifies the time interval at which the animation is redrawn.
Scale factor to adjust the size of the craft and target.
Selects preset MATLAB Graphics parameters CameraTarget and CameraUpVector for the figure axes. The dialog parameters Position of camera and View angle are used to customize the position and field of view for the selected view. Possible views are
Fixed position
Cockpit
Fly alongside
Specifies the MATLAB Graphics parameter CameraPosition for the figure axes. Used in all cases except for the Cockpit view.
Specifies the MATLAB Graphics parameter CameraViewAngle for the figure axes in degrees.
When selected, the animation is displayed during the simulation. If not selected, the animation is not displayed.
| Input | Dimension Type | Description |
|---|---|---|
| First | Vector | Contains the altitude and the downrange position of the target in Earth coordinates. |
| Second | Vector | Contains the altitude and the downrange position of the craft in Earth coordinates. |
| Third | Contains the attitude of the craft. |
See the aero_guidance demo for an example of this block.
FlightGear Preconfigured 6DoF Animation
![]() | 3D Self-Conditioned [A(v),B(v),C(v),D(v)] | 3DoF (Body Axes) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |