# Aerospace Toolbox

## Analyze and visualize aerospace vehicle motion using reference standards and models

Aerospace Toolbox provides tools and functions for analyzing the navigation and environment of aerospace vehicles and visualizing their flight using standard cockpit instruments or a flight simulator. It lets you import Data Compendium (Datcom) files directly into MATLAB® to represent vehicle aerodynamics and incorporate validated environment models for atmosphere, gravity, wind, geoid height, and magnetic field. You can evaluate vehicle motion and orientation using built-in aerospace math operations and coordinate system and spatial transformations. You can visualize the vehicle in flight directly from MATLAB with standard cockpit instruments and using the pre-built FlightGear Flight Simulator interface.

Free White Paper

## Vehicle Motion Analysis

Analyze vehicle flight dynamics and motion in MATLAB using aerospace coordinate system transformations, flight parameters, and quaternion math.

### Coordinate System Transformations

Use the coordinate system functions to standardize units across data describing flight dynamics and motion, transform spatial representations and coordinate systems, and describe the behavior of three- and six-degrees-of-motion bodies.

### Flight Parameters

Use functions to estimate aerodynamic flight parameters, such as airspeed, incidence and sideslip angles, Mach number, and relative pressure, density, and temperature ratios.

### Quaternion Math

Use built-in quaternion functions to calculate their norm, modulus, natural logarithm, product, division, inverse, power, or exponential. Or you can interpolate between two quaternions using the linear, spherical-linear, or normalized-linear methods.

## Environment Models

Use validated environment models to represent standard gravity and magnetic field profiles, to obtain atmospheric variables for a given altitude, and to implement the horizontal wind model of the U.S. Naval Research Laboratory.

### Atmosphere

Use validated environment models, including the COSPAR International Reference Atmosphere 1986, 1976 COESA, International Standard Atmosphere (ISA), Lapse Rate Atmosphere, and 2001 U.S. Naval Research Lab Exosphere, to represent the Earth’s atmosphere.

### Gravity and Magnetic Field

Calculate gravity and magnetic fields using standard models. Functions let you implement the Earth Geopotential Models, World Magnetic Models, and the International Geomagnetic Reference Field, including EGM2008, WMM2020, and IGRF13. You can also calculate height and undulations based on geoid data downloadable via Add-On Explorer.

### Wind

Use the horizontal wind function to implement the U.S. Naval Research Laboratory Horizontal Wind Model routine and calculate the meridional and zonal components of the wind for one or more sets of geophysical data.

## Flight Visualization

Visualize the motion of aerospace vehicles using standard cockpit flight instruments and the FlightGear flight simulator.

### Flight Instruments

Use standard cockpit flight instruments in MATLAB to display navigation variables. Instruments include airspeed, climb rate, and exhaust gas temperature indicators, altimeter, artificial horizon, turn coordinator, and more.

### Flight Simulator Interface

The animation object for FlightGear lets you visualize flight data and vehicle motion in a three-dimensional environment.

## Planetary Ephemerides

Use solar system ephemeris data to calculate position and velocity of planets for a given Julian date, and to describe Earth nutation and Moon libration motions.

### Celestial Phenomena Functions

With Chebyshev coefficients obtained from NASA’s Jet Propulsion Laboratory, you can use MATLAB to compute the position and velocity of solar system bodies relative to a specified center object for a given Julian date, as well as Earth nutation and Moon libration.

## Import Datcom Files

Use coefficients obtained from the Digital Data Compendium (Datcom) based on vehicle flight conditions and geometry to estimate its aerodynamic stability and control characteristics.

### Digital Datcom Data

Import aerodynamic coefficients from static and dynamic analyses and transfer them into MATLAB as a cell array of structures containing information about a Datcom output file.

## Latest Features

### `igrfmagm` Function

Implement the 13th Generation of the International Geomagnetic Reference Field (IGRF-13) in MATLAB

### `wrldmagm` Function

Implement the World Magnetic Model 2020 in MATLAB

### Flight Instruments in App Designer

Create user interfaces in MATLAB for aerospace-specific applications

### Supersonic Airspeed Correction

Convert between equivalent, calibrated, or true airspeed

### Polar Motion

Calculate the movement of rotation axis with respect to the Earth crust according to IAU2000A

### Celestial Intermediate Pole Location

Calculate adjustment to the celestial intermediate pole location according to IAU2000A

See the release notes for details on any of these features and corresponding functions.

### Researchers Test Control Algorithms for NASA SPHERES Satellites with a MATLAB Based Simulator

For NASA, developing satellite trajectory optimization and control algorithms with MATLAB and related toolboxes is about twice as fast as developing them with languages that require everything to be coded from scratch.