MATLAB: How to customize the visualization from the MATLAB Animation block in Aerospace Blockset

Aerospace Blockset

I want to visualize the movement of a plane in z-direction. The block description reads: "By default, the camera aim point is the position of the first body lagged dynamically to indicate motion."

Best Answer

In Aerospace Blockset, you can customize the visualization of the movement by adding an invisible object to the MATLAB Animation block as the first body in which the altitude remains constant. The camera then focuses on this object and you will see the movement of the second object relative to this invisible object. A sample model which implements an example of this visualization approach is attached.