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?
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);