- #1
- 6
- 1
I feel I may have improperly posted this thread https://www.physicsforums.com/showthread.php?t=469331" but am just not as knowledgeable in my matrix math as I need to be. One (me) would think that somehow you should be able to get a rotation matrix from these two systems.
So I have two matrices composed of 3 orthogonal vectors
G = [1 0 0;
0 1 0;
0 0 1]
and
L = [0.96247 -0.03259 -0.266524;
0.02676 0.99932 -0.025578;
0.26718 0.018486 -0.962682]
I have a point in the global system, which i would like to rotate in the same manner one matrix is rotated from the other. (I think .. R(alpha) * R(beta) * R(gama))
It can be assumed the two systems have the same origin.
Possibly relevant
x'_vector = R_matrix * x_vector
Here is my MATLAB attempt. I feel I'm way off (no laughing!)
Again I hope I'm not being too hasty with this repost, but i didn't want to be scorned for my incorrect post location.
Thanks for any help,
Cheers!
Homework Statement
So I have two matrices composed of 3 orthogonal vectors
G = [1 0 0;
0 1 0;
0 0 1]
and
L = [0.96247 -0.03259 -0.266524;
0.02676 0.99932 -0.025578;
0.26718 0.018486 -0.962682]
I have a point in the global system, which i would like to rotate in the same manner one matrix is rotated from the other. (I think .. R(alpha) * R(beta) * R(gama))
It can be assumed the two systems have the same origin.
Homework Equations
Possibly relevant
x'_vector = R_matrix * x_vector
The Attempt at a Solution
Here is my MATLAB attempt. I feel I'm way off (no laughing!)
Code:
x = [1 0 0];
x_p = [0.96247 -0.0325928 -0.266524];
A = x_p \ x
y = [0 1 0];
y_p = [0.0267575 0.999315 -0.0255778];
B = y_p \ y
z = [0 0 1];
z_p = [0.267175 0.0174863 0.962682];
C = z_p \ z
Again I hope I'm not being too hasty with this repost, but i didn't want to be scorned for my incorrect post location.
Thanks for any help,
Cheers!
Last edited by a moderator: