I figured it out, and wrote this m-file. There is still potential for error for angles outside of [-pi,pi], but I was able to simply add or subtrace 2pi when discontinuities were present. Anyway, here is the code, in case anyone wants it...
function [PHI, THETA, PSI] = FindEulerAngles(i_SEG...
Unfortunately, it isn't that easy in 3D. I have vectors i,j,k for a particular body, and I am trying to get phi, theta, and psi (sometimes referred to as alpha, beta, and gamma) with respect to the global I,J,K axes. There is a published work on this, but they use arguments such as...
Hello all!
I am having difficulty extracting Euler angles from a rotated coordinate system in MATLAB. The problem comes in when the angles go outside the bounds of [-pi/2,pi/2] because the asin() function only outputs within those bounds. Does anyone have any insight into how I might be...