how aggregate duraration and sum it in timetable
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Luca Re
am 27 Mai 2024
Bearbeitet: the cyclist
am 27 Mai 2024
Hi,
it's a timetable and i want to sum all duration equal:
example:
04/01/2010 2202 1.23
05/01/2010 2202 1.26
......
i want this:
duration value
22:02 2.49 (1.23+1.26)
0 Kommentare
Akzeptierte Antwort
the cyclist
am 27 Mai 2024
Bearbeitet: the cyclist
am 27 Mai 2024
Here is one way:
load("matlab_tt2")
TT2.timeOfDay = timeofday(TT2.datt);
equalDurationSum = groupsummary(TT2,"timeOfDay","sum")
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Timetables 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!