I use the SPECTROGRAM function on a signal as shown below: T = 0:0.001:2; X = chirp(T,100,1,200,'q'); spectrogram(X,128,120,128,1E3); However, I would like to plot the mean-squared or MS spectrum instead of Power Spectral Density (PSD).
Prashant Kumar answered .
2025-11-20
Fs=1000; t=0:1/Fs:.3; x=cos(2*pi*t*200)+randn(size(t)); Hs=spectrum.periodogram; msspectrum(Hs,x,'Fs',Fs)