setting an output value as a threshold value for finding local maxima block in simulink
Show older comments
Hi! Newbie user here. I just wanted to ask if is it possible to use te output of my MinMaxReset block as a threshold value for my Find Maximum block? If yes, how? Thank you

Accepted Answer
More Answers (1)
Pavan Guntha
on 29 Jul 2021
1 vote
Hi Ramon,
The Peak Finder block in Simulink accepts threshold as a property. So, it cannot be changed during the simulation run. To use the output of max block as threshold, the corresponding logic for peak detection needs to be designed using other existing blocks. The attached example illustrates the intended maxima detection assuming that the input vector length to Find Maxima block is constant for your application.
Hope this helps!
1 Comment
Ramon Benedict Lapina
on 29 Jul 2021
Edited: Ramon Benedict Lapina
on 29 Jul 2021
Categories
Find more on Signal Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
