Applying 3D Rotation Matrix
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Student123
il 13 Dic 2018
Commentato: James Tursa
il 14 Dic 2018
I have 2 sets of 3D axes in Matlab. I have a list of points in the first set of 3D axes that I want to apply a rotation matrix to in order to convert them to the same location in the second set of axes. I am a bit rusty with applying rotation matrices, any help is appreciated.
2 Commenti
James Tursa
il 13 Dic 2018
Modificato: James Tursa
il 13 Dic 2018
You need to form the direction cosine (rotation) matrix that goes from one coordinate frame to the other coordinate frame. You can get the elements of this matrix with the dot products of the coordinate axes that you have. How are these coordinate axes stored?
Risposta accettata
James Tursa
il 13 Dic 2018
Modificato: James Tursa
il 13 Dic 2018
You can use this FEX submission by Matt J with your coordinate axes as the inputs to get the rotation matrix R:
Then just multiply your points with that rotation matrix R.
2 Commenti
James Tursa
il 14 Dic 2018
Yes. Just give it the three coordinate axes directions in the two sets as the inputs to get the rotation matrix R as the output. Then just multiply all of your other points by R.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Interactions, Camera Views, and Lighting in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!