The variable name rpy suggests that the order is [roll, pitch, yaw], but that's not correct, is it?
Oh, I see. You have defined the yaw to be around the x-axis, and the roll to be around the z-axis. But there is still a problem with test case 4. I think it should be [-1,-2,0] rather than [1,-2,0].
30 Solvers
20 Solvers
Find Index of maximum Value and maximum Value of a vector
146 Solvers
Operate on matrices of unequal, yet similar, size
104 Solvers
How many days does the cat take to climb out of the hole?
64 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!