dspdata display units for spectrum

Illustration
George - 2021-03-03T10:33:27+00:00
Question: dspdata display units for spectrum

How can I change dspdata spectrum units, its in dB (dB/Hz for PSD), I would like the spectrum in real units.  

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

The data itself is saved in linear scale, not dB scale. It is only the  plotting that displays the value in dB scale. You can try the following:
 
 
h = psd(spectrum.periodogram,randn(1024,1));
plot(h.Frequencies,h.Data);
This way the yaxis is in linear scale.

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!