Filter löschen
Filter löschen

Difference between varying a matrix or a variable over time

1 Ansicht (letzte 30 Tage)
Amaral
Amaral am 9 Okt. 2015
Bearbeitet: Amaral am 9 Okt. 2015
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 :)

Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by