필터 지우기
필터 지우기

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 CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by