This example improves upon the previous attempts made on this demo:
A more recent enhancement for adding realism, quaternions and trajectory tracing was added to this submission here:
1. Multiple viewpoints and a 3D plot embedded inside a MATLAB GUI.
2. By attaching the Viewpoint node to the aircraft node, the second view from the aircraft is created which gives a better view of how the terrain looks from above.
3. As mentioned in 2, we also add a Spot Light node to the aircraft and alter is direction to create a lighting effect.
4. Experiment with the parameters a and b of the helical trajectory to see the various animations and views.
If you would like to explore more on how to use various VRML nodes, please refer to the tutorials available on the web:
Simulink Dude (2021). Fly a 747 with MATLAB: Multiple Views in a GUI, Dynamic Lighting (https://www.mathworks.com/matlabcentral/fileexchange/28006-fly-a-747-with-matlab-multiple-views-in-a-gui-dynamic-lighting), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!