Calculate Total Time accumulation based on specific data conditions.
1 view (last 30 days)
Show older comments
Hi,
Seems like there should be simple solution to this but something is not obvious to me.
I have a table with timestamped data. How do I calculate the total duration of time when specific conditions are meet (i.e. the data in the 2nd columen is equal to a certain number)?
"2019-04-04 02:55:32.277" 5
"2019-04-04 02:55:37.287" 5
"2019-04-04 02:56:11.277" 3
"2019-04-04 02:56:12.277" 3
"2019-04-04 02:56:17.267" 3
"2019-04-04 02:56:18.283" 5
"2019-04-04 03:00:06.107" 5
"2019-04-04 03:00:07.103" 5
"2019-04-04 03:01:07.133" 3
"2019-04-04 03:01:08.130" 5
Thanks
0 Comments
Answers (0)
See Also
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!