Hello, I have a MATLAB function block takes an input value (one per second) and after some calculations outputs it. How I force this block to stop outputting the signals for a given period of time? Let's say I have a signal:
And code outputs values larger than 3. I need it to stop outputting for 2 seconds if it indeed finds value larger than 3. So without output stopping, this block will output:
because these are indeed larger than 3. I need it to output:
i.e. it finds value larger than 3, then stops outputting for 2 iterations (2 seconds) and continues.