finding peaks in Simulink

14 ビュー (過去 30 日間)
satwick guturu
satwick guturu 2021 年 3 月 27 日
回答済み: Rohit Pappu 2021 年 3 月 30 日
How can i find peak vaues and their time stamps at which the peaks occur in SIMULINK ?

回答 (1 件)

Rohit Pappu
Rohit Pappu 2021 年 3 月 30 日
findpeaks accepts only vector data as it's input arguments. A possible workaround would be to use a Buffer block in between Simulink output and MATLAB Function input
Example:
The above example locates the peaks of a discrete sine wave. The Sine Wave block returns a scalar value while findpeaks expects a vector input. To fix this discrepancy, A buffer can be used to convert scalar value to vector values

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by