1To plot the spectrogram of a MATLAB vector xx, use the command specgram(xx,256,fs) where fs is the sampling frequency.