# Matlab Convert Aerospace Coordinates

Perform aerospace unit conversions, time conversions, coordinate frame transformations...

- Repository: https://github.com/matlab/matlab-agentic-toolkit (1237 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-10-27
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-convert-aerospace-coordinates -g -a claude-code -y`
Codex: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-convert-aerospace-coordinates -g -a codex -y`
Cursor: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-convert-aerospace-coordinates -g -a cursor -y`
Gemini CLI: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-convert-aerospace-coordinates -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add matlab/matlab-agentic-toolkit`

## Description

Perform aerospace unit conversions, time conversions, coordinate frame transformations, and rotation representations using Aerospace Toolbox. Use when converting units (length, velocity, angle, acceleration, angular velocity, force, mass, pressure, temperature, density), computing Julian dates or decimal years, transforming between coordinate frames (ECEF, ECI, LLA, flat Earth, geodetic/geocentric, NED, body, wind, stability), or working with rotation representations (Euler angles, DCM, quaternion, Rodrigues vector). Also use when the user asks about aerospace coordinate systems, reference frames, or rotation conventions.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Aerospace Fundamentals

Core Aerospace Toolbox functions for unit conversions, time conversions, coordinate transformations, and rotation representations.

## When to Use

- Converting between aerospace unit systems (SI, imperial, nautical)
- Computing Julian dates, modified Julian dates, decimal years, or TDB time
- Transforming positions between ECEF, ECI, LLA, or flat Earth frames
- Converting between geodetic and geocentric latitude
- Building DCMs for frame transformations (ECI↔ECEF, ECEF↔NED, body↔wind, body↔stability)
- Converting between Euler angles, DCMs, quaternions, and Rodrigues vectors
- Using the `quaternion` object for rotation math, interpolation, or composition
- Identifying which coordinate frame data is expressed in

## When NOT to Use

- Atmosphere models (`atmosisa`, `atmoscoesa`), use `matlab-compute-aerospace-environment`
- Airspeed corrections (`correctairspeed`), not covered here
- Orbit propagation or satellite maneuvers, use Aerospace Toolbox, Aerospace Blockset or Satellite Communications Toolbox
- Navigation-specific transforms (`lla2enu`, `lla2ned`), use Navigation Toolbox
- Simulink blocks, use `/model-based-design-core:building-simulink-models` with Aerospace Blockset

## Workflow

1. **Identify the coordinate frame**, Determine what frame your data is in and what frame you need. See `references/coordinate-systems.md` for frame definitions and decision guide.
2. **Convert units first**, Ensure inputs match the function's expected units before calling transforms.
3. **Apply the transformation**, Use the appropriate function with correct argument ordering.
4. **Verify**, Round-trip the result back to the original frame; error should be < 1e-10.

## Key Functions

### Unit Conversions

The rest: https://github.com/matlab/matlab-agentic-toolkit/blob/HEAD/skills-catalog/aerospace/matlab-convert-aerospace-coordinates/SKILL.md
