3D matrix rotations to make two matrices have the same 3D direction cosines
Show older comments
I have two different points, and I'm trying to rotate one of the points about [0,0,0] so the 3D direction cosines (angle to the axes from the origin) will be equal - like aligning the points, but length of the vector doesn't matter, just the angle from the origin.
I have calculated the direction cosine for each axis and each point. I then tried subtracting the direction cosine angles then rotating one point by this, in each direction in turn. But the direction cosines of the new point position don't match... I feel like I might be doing something wrong when calculating the rotation angle required?
Any help would be great, thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


