Calculate duration from labeled timestamped data.
Afficher commentaires plus anciens
Hi,
I have a timetable with timestamps and labels of different activities. The stacked plot looks like this.

I would like to calculate the durations of each cycle of the activity. For example, the top plot has 11 "Dump" sequences, so the outcome should be,
Dump = [t1, t2, ........t11], t = duration of each dump instance.
Is there any smarter way to accomplish this without using FOR loop and tracking changes in each row?
I am also attaching the .mat file of the timetable.
Thank you!
2 commentaires
Akira Agata
le 11 Juin 2020
If possible, could you upload your timetable data so that people here can try their idea?
Khandakar Rashid
le 11 Juin 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Tables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!