How to get only envelope spectrum plot, not the envelope signal

I am using
envspectrum(signal,samplingFrequency);
To get the envelope spectrum. I just need to plot the envelope spectrum. How can I do that? Also how to modify the scaling?

5 Comments

hello
yes your are using the right function , but what is your problem ? the function does what you need...
I just want the bottom plot, preferably in a subplot. Also, I want to manipulate the scaling.
so use the following form :
[ES,F] = envspectrum(signal,samplingFrequency);
for different scaling, it depends if you want to normalize to the highest peak or do something else...
for example, if the highest peak must have amplitude = 1
scale _factor = 1./max(ES);
ES = ES*scale _factor ;
then
subplot(....), plot(F,ES);
That was exactly what I was looking for. Thanks. How do I select your response as the best answer?
Just copied the explanantion from another answer :
Make sure you are logged in.
If the question has already been closed you will see "Accepted Answer by ____" to the right of your profile picture where the question is asked.
If not, then look next to the profile picture of the answerer(s). To the right of each person's answer, in green, you should see a box that says "Accept this answer." Push that button.

Sign in to comment.

Answers (0)

Asked:

on 26 Oct 2020

Commented:

on 27 Oct 2020

Community Treasure Hunt

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

Start Hunting!