Calculate Total Time accumulation based on specific data conditions.
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!