k will be true (or logical 1) if reset needs to be applied.
false (or logical 0) otherwise.
load('resettimehelp.mat');
current_time = 2;
k = ismember(Time(current_time), datetime(reset_system{:,1}));
ans =
logical
1
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!