How can i make a smoothed envelope of my complex (random) signal?

7 views (last 30 days)
I would like to plot a envelope over my random signal (complex). My matlab does not support the function 'envelope'. Any ideas how I can do this?
Thanks in advanced.
stijn
  4 Comments
Adam
Adam on 29 Aug 2017
Smoothing is something of a black art and depends entirely on your data, what you want to get from it, etc, etc.
You could just slap a length 5 mean filter over your envelope to smooth it, but that is very aggressive.
Or you can use a Savitzky-Golay filter
doc sgolay
to do some post smoothing. That requires a lot of parameterisation though which again depends on just how smooth you want it vs how much of your data you want to retain.

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 29 Aug 2017
The envelope (link) function uses the absolute value of the hilbert (link) function. Use that instead.
For more information, see Envelope Extraction Using the Analytic Signal (link).

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!