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?
Asked
Active
Viewed 2,939 times
0
-
multiply the normalized frequency by the Nyquist frequency – Hoki Dec 06 '14 at 10:38
1 Answers
1
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);

hbaderts
- 14,136
- 4
- 41
- 48
-
Thank you hbaderts! I do that but don't know why the axis scaling is the half of anything I enter as FS? – user3305284 Dec 07 '14 at 10:43