# Aerospace Toolbox

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

### Get Started: ## 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.

Example overlaying simulated and actual flight data.

### 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 functions to calculate quaternion norm, modulus, natural logarithm, product, division, inverse, power, or exponential. Interpolate between two quaternions using linear, spherical-linear, or normalized-linear methods.

## Aircraft Controls and Stability Analysis

Use coefficients obtained from the Data Compendium (DATCOM) based on vehicle flight conditions and geometry to create fixed-wing aircraft objects, estimate aerodynamic stability and control characteristics, and perform numerical analysis.

### Fixed-Wing Aircraft

By importing USAF Digital DATCOM files, you can create a fixed-wing aircraft object with custom states and perform linearization and static stability analysis in MATLAB.

### 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.

## Small Satellite Mission Analysis

Model and visualize satellites in orbit and compute line-of-sight access with ground stations using the `satelliteScenario` object. Use solar system ephemeris data to calculate planetary position and velocity for a given Julian date.

### Satellite Scenarios

Create satellite scenarios to model and visualize satellites and constellations and perform mission analysis, such as computing line-of-sight access with ground stations.

### Planetary Ephemerides

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.

## 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 Fields

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 the Add-On Explorer.

Example of geoid height for Earth geopotential model.

### 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, as well as an altimeter, artificial horizon, and turn coordinator.

Reviewing prerecorded flight test data or simulation data.

### Flight Simulator Interface

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

Replaying flight data in FlightGear.