Filter löschen
Filter löschen

How to normalized power from spectrogram

5 Ansichten (letzte 30 Tage)
Wendy Fernandez
Wendy Fernandez am 15 Jun. 2017
Beantwortet: Vishal Neelagiri am 22 Jun. 2017
I am using
spectrogram(singal,[],[],[],Fs,'yaxis');colorbar;
command and I would like to normalize the power values obtained in the colorbar. However, I have not seen any way in the documentation to do it. Any suggestions?

Akzeptierte Antwort

Vishal Neelagiri
Vishal Neelagiri am 22 Jun. 2017
There doesn't seem to be a direct way to normalize the output of the Spectrogram figure. However, you can workaround this by using [~,ps] = spectrogram(singal,[],[],[],Fs,'yaxis'); to extract out the power density values to MATLAB and then normalize the values manually depending on your use-case.

Weitere Antworten (0)

Kategorien

Mehr zu Time-Frequency Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by