Two vectors to DCM

Get the DCM between two reference frames if two arbitrary vectors in both frames need to be aligned
9 Downloads
Updated 19 Jun 2023

View License

calculates the Direction Cosine Matrix (DCM), , between the two reference frames, , where . The function requires the knowledge of the representations of two arbitrary points (vectors) in both frames.
INPUTS:
  • : vector r represented in frame a
  • : vector r represented in frame b
  • : vector v represented in frame a
  • : vector v represented in frame b
OUTPUTS:
  • : An orthonaormal DCM that rotates any vector from frame b to frame a

Cite As

Ahmed Mahfouz (2024). Two vectors to DCM (https://www.mathworks.com/matlabcentral/fileexchange/131339-two-vectors-to-dcm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0