log scale y-axis for periodogram
Mostrar comentarios más antiguos
The periodograms from an electronic signal I am analyzing have such high power periodicity in the low frequency bandwidths that, without zooming in on the data, these are almost impossible to read. (see the example below) Is it possible, when using the [(pxx,f) = periodogram(x,window,nfft)], to adjust the y-axis to a log-scale to improve the graph's readibility? The y-axis in the example represents the magnitude of the periodogram (i.e. abs(pxx)).

Respuestas (1)
Mischa Kim
el 11 de Feb. de 2014
Editada: Mischa Kim
el 11 de Feb. de 2014
Philippe, it is. Use
pxx = periodogram(x,window,nfft)
plot(10*log10(pxx))
to plot the periodogram.
2 comentarios
Philippe
el 11 de Feb. de 2014
Mischa Kim
el 11 de Feb. de 2014
I am not quite sure I understand. For plotting frequency vs. pxx you would use
plot(f,10*log(pxx))
instead, correct. Is that what you are referring to? Or are you still not able to get the log-scale on the y-axis?
Categorías
Más información sobre 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!