Why does conversion from quaternions to rotation angles followed by rotation angles to quaternions give different results in Aerospace Toolbox 2.2(R2008b)?
Show older comments
I have a simple example which converts a quaternion to rotational angles and then reconverts it back to quaternion. The reproduction code is as follows:
q=[1 0 1 0];
[yaw, pitch, roll] = quat2angle(q)
q2 = angle2quat(yaw, pitch, roll)
Output (q2) is [0.7071 0 0.7071 0] whereas the input (q) was [1 0 1 0]. I expected q2 to be same as q.
Accepted Answer
More Answers (0)
Categories
Find more on Unit Conversions 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!