How to find local maxima and its location in real time using simulink ( HDL convertable)

The fixed point values are samples at a freuency of 250 HZ. I have tried findpeaks( predefined matlab function ) but this is not HDL convertible.

回答(1 个)

You'll need to analyze the time sequence yourself, computing the discrete derivative and looking for it to either become zero or reverse sign.

类别

在 帮助中心 和 File Exchange 中查找有关 Code Generation 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by