Align a Vector to Another

Calculates the rotation matrix that aligns a vector to another
14 download
Aggiornato 17 gen 2023

Visualizza la licenza

This function calculates rotation matrix that aligns a vector to another.
function R=Rotation(a,b)
where:
a and b are (3*1) vectors
R is (3*3) rotation matrix that aligns vector a to b so that: the normalized vector of b equals R multiplied by the normalized vector of a
references:
Jur van den Berg (https://math.stackexchange.com/users/91768/jur-van-den-berg), Calculate Rotation Matrix to align Vector A to Vector B in 3d?, URL (version: 2016-09-01): https://math.stackexchange.com/q/476311

Cita come

Ayad Al-Rumaithi (2024). Align a Vector to Another (https://www.mathworks.com/matlabcentral/fileexchange/123395-align-a-vector-to-another), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2022b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0