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 件のコメント

Mathieu NOE
Mathieu NOE 2020 年 10 月 26 日
hello
yes your are using the right function , but what is your problem ? the function does what you need...
Atik Faysal
Atik Faysal 2020 年 10 月 26 日
I just want the bottom plot, preferably in a subplot. Also, I want to manipulate the scaling.
Mathieu NOE
Mathieu NOE 2020 年 10 月 26 日
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);
Atik Faysal
Atik Faysal 2020 年 10 月 27 日
That was exactly what I was looking for. Thanks. How do I select your response as the best answer?
Mathieu NOE
Mathieu NOE 2020 年 10 月 27 日
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.

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

回答 (0 件)

カテゴリ

質問済み:

2020 年 10 月 26 日

コメント済み:

2020 年 10 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by