フィルターのクリア

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

1 回表示 (過去 30 日間)
Adam Johnson
Adam Johnson 2018 年 4 月 10 日
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 件)

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by