looping to change elements of multiple rows due to the change of one row
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Waveform Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!