How do I plot a path with orientation in Matlab?
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Flavio Clarizia
am 16 Nov. 2020
Beantwortet: David Hill
am 16 Nov. 2020
I have designed a controller such that a mobile robot traces a trajectory. Now, I would like to plot this trajectory, but I am not really good in doing plots. Until now, I have imported the states from Simulink to the Matlab workspace:
x=configuration.signals.values(:,1);
y=configuration.signals.values(:,2);
theta=configuration.signals.values(:,3);
t=configuration.time;
v=inputs.signals.values(1,:);
omega=inputs.signals.values(2,:);
and I would like to plot something like:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/415973/image.png)
and I don't know how to do it, and I can't find anything on internet that shows me how to do something similar.
For me it is really important to show the orientation along the path, or at least at the end and at the beginning of the path.
I have to start from an initial configuration and end up at the origin, as in the figures above.
Can somebody please help me?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Plot Customization 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!