Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by bosiljevac

  1. bosiljevac

    Programming Euler angles in MATLAB

    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...
  2. bosiljevac

    Programming Euler angles in MATLAB

    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...
  3. bosiljevac

    Programming Euler angles in MATLAB

    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...

Part and Inventory Search