How can I use peak of a sine wave and use it in other part of the simulink model?

6 ビュー (過去 30 日間)
Muhammed Fasil
Muhammed Fasil 2016 年 5 月 31 日
コメント済み: Abhisek Roy 2016 年 6 月 3 日
I want to use peak of the generated voltage and use that peak value as one of the input(constant) to my PLL block.
  1 件のコメント
Abhisek Roy
Abhisek Roy 2016 年 6 月 3 日
Hi Muhammed,
You can use a 'buffer' to store few samples and then find the peak of them. This peak will be the maximum of the values available in the buffer which may not be the peak of the signal. So you should store this value and again in the next iteration whatever output you get from the 'minmax' block, compare this value with the previous one to check which one is larger and store the larger one. After a few iterations, once the buffer is able to cover the whole range of the sinusoid you should get the peak of the incoming signal.
Regards, Abhisek

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

回答 (0 件)

カテゴリ

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