Another F-16 Simulation? A User-Friendly Julia, MATLAB, and Simulink Flight Simulation Package Suitable for Undergraduate Teaching
Duc NGUYEN, Mark LOWENBERG
Abstract. We present a compact and user-friendly simulation package of the F-16 aircraft, which is based on aerodynamic data from the 1979 report by NASA. Developed across Julia, MATLAB, and Simulink, the package was designed for education and early research training. Priorities were given for clarity and ease-of-use over advanced functionality while preserving the full six-degree-of-freedom equations of motion and nonlinear aerodynamics. Three model variants are provided: 4th-, 8th-, and 12th-order, each progressively expanding the simulated dynamics. In addition to solving the nonlinear equations of motion, some common functions for flight dynamics analysis are provided, including trimming and linearisation, parameter sweep using parallel simulations, 3D trajectory display, and a unique real-time plotting capability in Julia. Benchmarking demonstrates excellent performance, particularly for Julia, which achieves sub-millisecond runtimes for typical time-integration tasks. The package enables learners to explore core flight-dynamics principles and nonlinear behaviours such as spins and deep stalls within a minimal coding structure. This work aims to lower the entry barrier to flight-simulation education and provide a flexible platform for undergraduate teaching and introductory research.
Keywords
Flight Simulation, Aircraft Dynamics, Education, Julia, MATLAB, Simulink
Published online 7/20/2026, 5 pages
Copyright © 2026 by the author(s)
Published under license by Materials Research Forum LLC., Millersville PA, USA
Citation: Duc NGUYEN, Mark LOWENBERG, Another F-16 Simulation? A User-Friendly Julia, MATLAB, and Simulink Flight Simulation Package Suitable for Undergraduate Teaching, Materials Research Proceedings, Vol. 69, pp 1500-1504, 2026
DOI: https://doi.org/10.21741/9781644904251-263
The article was published as article 263 of the book CEAS – AIDAA Conference 2025
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 license. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
References
[1] Balas, G. “Non-Linear F-16 Aircraft Model”, dept.aem.umn.edu/~balas/darpa_sec/SEC.Software.html [retrieved 21 July 2025].
[2] Bhattacharya, R. “F16-Model-Matlab”, github.com/isrlab/F16-Model-Matlab [retrieved 31 July 2025].
[3] Stevens, B. L., Lewis, F. L., and Johnson, E. N., Aircraft Control and Simulation: Dynamics, Controls Design, and Autonomous Systems, Wiley, 2015. https://doi.org/10.1002/9781119174882
[4] MathWorks. “Fly the De Havilland Beaver”, uk.mathworks.com/help/aeroblks/fly-the-dehavilland-beaver.html [retrieved 21 July 2025].
[5] Nguyen, D. H., and Lowenberg, M. H. “F-16_Bristol”, github.com/duchn7/F-16_Bristol.git [retrieved 8 November 2025].
[6] Nguyen, L. T., Ogburn, M. E., Gilbert, W. P., Kibler, K. S., Brown, P. W., and Deal, P. L. “Simulator Study of Stall/Post-Stall Characteristics of a Fighter Airplane with Relaxed Longitudinal Static Stability,” NASA Technical Paper 1538. NASA, Langley Research Center, Hampton, Virginia, 1979.

