When I execute the following code:
close all;Fs = 1000;t = 0:1/Fs:.3;x=cos(2*pi*t*200); Hs=spectrum.welch;psd(Hs,x,'Fs',Fs)figure[p , f]=spectrum(x);plot(f,10*log10(abs(p).^2) )
I notice approximately a 30 dB difference in the plots resulting from SPECTRUM.WELCH and the SPECTRUM functions.
Best Answer