MATLAB Answers

setting an output value as a threshold value for finding local maxima block in simulink

1 ビュー (過去 30 日間)
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

採用された回答

Ramon Benedict Lapina
Ramon Benedict Lapina 2021 年 7 月 29 日
編集済み: Ramon Benedict Lapina 2021 年 7 月 29 日
I have already found a solution regarding with my problem. I used a matlab function block in order to process my signal given with a varying thresholding value. The picture below shows a block that accepts two signals: the real-time signal I have processed and the thresholding value of that given signal. The output is satisfactory, however this method is not applicable for getting all the peaks. I need to figure out some other solutions for this problem yet.
Note: I am currently trying to detect ECG peaks for this function block.

その他の回答 (1 件)

Pavan Guntha
Pavan Guntha 2021 年 7 月 29 日
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 件のコメント
Ramon Benedict Lapina
Ramon Benedict Lapina 2021 年 7 月 29 日
Hi. I appreciate your reply. I will take this into consideration.

サインインしてコメントする。

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by