Filter löschen
Filter löschen

How to make a trajectory from position and Velocity data

5 Ansichten (letzte 30 Tage)
Adam Levschuk
Adam Levschuk am 16 Jun. 2020
Kommentiert: David Hill am 17 Jun. 2020
Hello, I feel that this is a very easy question and i am mad that i have not figured it out myself.
I have position data (euler angles) and the coraspinding angualr velcoity and i want to generate a 2xn variable with both these variables.
if i do...
plot(eulerAngles(:,2), gyr(:,2)) this plot gives me the trajectory that i am trying to create. How do i save this trajectory as a single variable?
thanks for your help.

Akzeptierte Antwort

David Hill
David Hill am 17 Jun. 2020
newVariable=[eulerAngles(:,2)';gyr(:,2)'];
  4 Kommentare
Adam Levschuk
Adam Levschuk am 17 Jun. 2020
ohhhh i see, thank you very mcuh david. very helpful!
Adam
David Hill
David Hill am 17 Jun. 2020
If you are satisfied with the answer, accept it to close it out.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by