How to make comparison plot in a struct
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ram Prasanth
am 12 Feb. 2024
Kommentiert: Ram Prasanth
am 13 Feb. 2024
I have a time series data of Y-position of the vehicle trajectory inside a struct of 1*41 struct.
I want to compare each time step of all the 41 timeseries across.
This is the code i created but its not working. can you help me with these?

Code is:
figure;
for m = 1:41
hold on;
plot(egoStatesRefTrajectory.y(:,1),egoStatesRefTrajectory.y(:,2))
end
0 Kommentare
Akzeptierte Antwort
VBBV
am 12 Feb. 2024
Bearbeitet: VBBV
am 13 Feb. 2024
plot(egoStatesRefTrajectory(m).y(:,1),egoStatesRefTrajectory(m).y(:,2))
7 Kommentare
VBBV
am 13 Feb. 2024
Ok, It seems like data is nested in different structures from which you extract. The problem in your question however is shown in highly simplified form for anyone to comprehend.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

