Peak envelop function does not work in Simulink

The Peak Envelope function works well through the command window.
But when I try the exact equitation in Simulink, it just returns the input signal for both up and low envelope signals.
Matlab-Envelope
Simulink-Envelope
I also tried suggested models in:
As you can see in following image the distortion at the beginning is not acceptable at all.
Envelope-detection
How can I implement precise Peak Envelope function in simulink?
...

Answers (0)

Products

Release

R2020a

Asked:

on 31 Mar 2021

Edited:

on 31 Mar 2021

Community Treasure Hunt

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

Start Hunting!