
Matlab Convert Aerospace Coordinates
Perform aerospace unit conversions, time conversions, coordinate frame transformations...
Install
npx skills add matlab/matlab-agentic-toolkit --skill matlab-convert-aerospace-coordinates -g -a claude-code -y- Repository
- matlab/matlab-agentic-toolkit1.2k
- Category
- Engineering
- Updated
- 8d ago
- License
- See repository
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- No, instructions only
What it does
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.
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
quaternionobject for rotation math, interpolation, or composition - Identifying which coordinate frame data is expressed in
When NOT to Use
- Atmosphere models (
atmosisa,atmoscoesa), usematlab-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-modelswith Aerospace Blockset
Workflow
- Identify the coordinate frame, Determine what frame your data is in and what frame you need. See
references/coordinate-systems.mdfor frame definitions and decision guide. - Convert units first, Ensure inputs match the function's expected units before calling transforms.
- Apply the transformation, Use the appropriate function with correct argument ordering.
- Verify, Round-trip the result back to the original frame; error should be < 1e-10.
