TX Ty TZ Ty TZ TX TZ TX Ty Matlab Code:: % Symbolizing The Variables
TX Ty TZ Ty TZ TX TZ TX Ty Matlab Code:: % Symbolizing The Variables
TX Ty TZ Ty TZ TX TZ TX Ty Matlab Code:: % Symbolizing The Variables
Matlab Code:
% Symbolizing the Variables
syms x y z
syms cosx sinx cosy siny cosz sinz
% Transformation Matrices
Command Window:
TX
[ 1, 0, 0, x]
[ 0, cosx, -sinx, y]
[ 0, sinx, cosx, z]
[ 0, 0, 0, 1]
TY
[ cosy, 0, siny, x]
[ 0, 1, 0, y]
[ -siny, 0, cosy, z]
[ 0, 0, 0, 1]
TZ
[ cosz, -sinz, 0, x]
[ sinz, cosz, 0, y]
[ 0, 0, 1, z]
[ 0, 0, 0, 1]
TX*TY*TZ
[ cosy*cosz, -cosy*sinz, siny,
2*x + cosy*x + siny*z]
[ cosx*sinz + cosz*sinx*siny, cosx*cosz - sinx*siny*sinz, -cosy*sinx,
y + 2*cosx*y - sinx*z - cosy*sinx*z + sinx*siny*x]
[ sinx*sinz - cosx*cosz*siny, cosz*sinx + cosx*siny*sinz, cosx*cosy,
z + cosx*z + 2*sinx*y + cosx*cosy*z - cosx*siny*x]
[ 0, 0, 0,
1]
TY*TZ*TX
[ cosy*cosz, sinx*siny - cosx*cosy*sinz, cosx*siny + cosy*sinx*sinz,
x + cosy*x + 2*siny*z + cosy*cosz*x - cosy*sinz*y]
[ sinz, cosx*cosz, -cosz*sinx,
2*y + cosz*y + sinz*x]
[ -cosz*siny, cosy*sinx + cosx*siny*sinz, cosx*cosy - sinx*siny*sinz,
z + 2*cosy*z - siny*x - cosz*siny*x + siny*sinz*y]
[ 0, 0, 0,
1]
TZ*TX*TY
[ cosy*cosz - sinx*siny*sinz, -cosx*sinz, cosz*siny + cosy*sinx*sinz,
x + 2*cosz*x - sinz*y - cosx*sinz*y + sinx*sinz*z]
[ cosy*sinz + cosz*sinx*siny, cosx*cosz, siny*sinz - cosy*cosz*sinx,
y + cosz*y + 2*sinz*x + cosx*cosz*y - cosz*sinx*z]
[ -cosx*siny, sinx, cosx*cosy,
2*z + cosx*z + sinx*y]
[ 0, 0, 0,
1]
Remarks
For the Matrices to be equal, the corresponding elements of the matrices have to be equal. The system
is an underdetermined system with more unknowns the equations.