looping to change elements of multiple rows due to the change of one row
1 次查看(过去 30 天)
显示 更早的评论
Hi, I am trying to model a time delay effect of a motion sensor. I have data which reads highs (1) and lows(0) when motion is sense via a PIR sensor. This data is time stamped every 8 seconds. when the signal becomes high in the data I wish to keep it high for 5 minutes, this the next 60 elements in my data to simulate a 5 minute delay in switching off. I also wish to re-trigger the 5 minute count whenever the data is high during the original 5 minute countdown. I have tried creating a loop which checks the data I have and reproduces a new vector with the new data fitted with time delay. can anyone help? Much appreciated.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!