How to use simulink to find minimums of a signal over successive intervals of time ???????

1 次查看(过去 30 天)
I want to use simulink blocks to find the mimimums ( different from zero ) of the signal below over chosen intervals of time:
For example: in the interval [0 200] the output must be about 28 in the interval [200 300] the output must be about 45 in the interval [300 500] the output must be about 80 and so on.....
the output from the block must be a continuous signal containing all the minimums from all intervals during the whole period of simulation. I want a continuous signal because I want that after each minimum found the output of the block stays equal to that minimum until the next minimum in the next interval is found.

回答(1 个)

Swarooph
Swarooph 2016-5-4
Use the MinMax running resettable block and generate/pass a reset signal based on the time instant: http://www.mathworks.com/help/simulink/slref/minmaxrunningresettable.html

Community Treasure Hunt

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

Start Hunting!

Translated by