Effacer les filtres
Effacer les filtres

looping to change elements of multiple rows due to the change of one row

1 vue (au cours des 30 derniers jours)
Adam Johnson
Adam Johnson le 10 Avr 2018
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.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by