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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by