Two vectors to DCM
Version 1.0.0 (910 KB) by
Ahmed Mahfouz
Get the DCM between two reference frames if two arbitrary vectors in both frames need to be aligned
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 LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |