Modify length of Output Signal of Detect Increase Function?

2 views (last 30 days)
Is there a possiblity to modify the length of the output signal when using the "Detect Increase" function?
The current situation is shown in the image attached. The input signal is a step function.
With each increase I want a peak as outputsignal. It should not last longer than a few time steps. The current outputsignal lasts about 2 seconds. How can i manage to make it shorter?

Answers (0)

Community Treasure Hunt

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

Start Hunting!