*Enlace a Spanish version
Materials: [ Cód.: animaavion.m ] [ PDF ]
This video presents the detail of the Matlab code necessary to make simulations and animations of the 2D phugoid flight mode (longitudinal dynamics) of an aircraft.
The first two minutes review the state equations to be simulated (further
details in video [
Then, we discuss how to write the model as Matlab code, how to call ode45 correctly, and in the final part, we discuss how to represent the response as either:
a graph of positions, velocities, accelerations, etc. as a function of time; or
an animation of the moving plane.
This video merely presents the source code. Actual runs of various simulations
with different aerodynamic parameters, initial speeds or thrust is covered in detail
in the [
*Link to my [ whole collection] of videos in English. Link to larger [ Colección completa] in Spanish.