In using spectrogram, what is the difference between specifying option 'power' and 'psd'?
Mostrar comentarios más antiguos
I ran two tests, with identical input data, first with:
[s,f,t] = spectrogram(y1, hann(windowsz), noverlap, nfft, fs,'yaxis','power','reassigned');
then with:
[PSDs,f,t] = spectrogram(y1, hann(windowsz), noverlap, nfft, fs,'yaxis','psd','reassigned');
I then checked to see if the results where the same:
if s == PSDs
a = 'SAME'
end
and the result was 'SAME'
So, what do options 'psd' and 'power' do?
Respuestas (2)
Star Strider
el 25 de Jul. de 2016
0 votos
The best I can do is to quote the documentation:
- Omitting spectrumtype, or specifying 'psd', returns the power spectral density.
- Specifying 'power' scales each estimate of the PSD by the equivalent noise bandwidth of the window. The result is an estimate of the power at each frequency. If the 'reassigned' option is on, the function integrates the PSD over the width of each frequency bin before reassigning.
1 comentario
Jonathan
el 25 de Jul. de 2016
Greg Dionne
el 2 de Mayo de 2017
0 votos
The first output is always the (unmodified) STFT.
The 'power' and 'psd' and 'reassign' flags only affect the later outputs (most notably Pxx).
Categorías
Más información sobre Parametric Spectral Estimation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!