Plot specific values from two different tables
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sofie Petersson
am 20 Nov. 2018
Kommentiert: Sofie Petersson
am 20 Nov. 2018
Hello.
I have two different tables with date (yyyy-mm-dd HH:mm) and temperature from one year. One of the tables include hourly values and the other one does not inlude all hours from the days. I want to plot the temperature from both tables but only the values that are from the same time.
Is there any way to do this?
Please tell me if you don't understand my question, maybe it is a bit messy.
0 Kommentare
Akzeptierte Antwort
Peter Perkins
am 20 Nov. 2018
One good way to do this would be to create two timewtables, and then synchronize them. Depending on what you want your plot to look like, you might synchronize to 'hourly', or you might synchronize to the row times of the second timetable with "missing" rows.
Then it's just a matter of plotting temp against time, perhaps something like
plot(tt.Time,tt.Temp1,tt.Time,tt.Temp2)
where tt is your synchronized timetable.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!