How can I plot a non-normalized spectrogram in MATLAB?

3k views Asked by At

I want to plot a non-normalized spectrogram in MATLAB. my input signal is y with 16KHz sample rate and 8bit per second. How can I plot its spectrogram in its frequency, not in normalized frequency?

1

There are 1 answers

1
hbaderts On BEST ANSWER

Assuming you have a license for the MATLAB signal processing toolbox, you can use the function spectrogram. You find details on this function on the MATLAB help page. The syntax is

S = spectrogram(x,window,noverlap,nfft,fs);

where fs is the sampling frequency. If you want to plot a spectrogram of a signal x with default parameters and sampling frequency 16kHz, you can just omit the other parameters:

spectrogram(x,[],[],[],16e3);