Difference between varying a matrix or a variable over time

1 次查看(过去 30 天)
Hi everyone.
Yesterday i asked something about how to vary a variable over time in a specific form. Today i have another question, the subject is a bit similar, but it's actually something that is bugging my mind because of the results.
My question is: I have a RotationMatrix and i want to interpolate the rotations over time (from instant 0 to instant 1). I've done it with two approaches:
-> For the first case, i extracted the angle from the rotation matrix with the atan2, and then interpolated the value: angle(t) = angle*t. And it works normally.
-> For the second case, i vary the Rotation Matrix directly over time and then extracted the resulting angle with atan2. The way i vary the matrix was: rotationMatrix(t)= (1-t)*I + t*rotationMatrix.
And it works too, but like it's shown in the above image, the interpolation values are completely different. Wasn't it suppose that both approaches give same results? How can I formulate Case 1 to give me the same results of Case 2?
Thanks :)

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by