to get the equivalent in an updated version of MATLAB use the corresponding syntax for pwelch.m
[P,F] = spectrum(SSSS,128,0,hanning(128),1/15); is the old version of matlabs solution to find the spectrum of the signal named 'SSSS'. can any one explain this ?? what is the equivalent of above spectrum, that compatible to the latest version of MATLAB ?
John Michell answered .
2025-11-20
[Pxx,F] = pwelch(SSSS,hanning(128),0,128,1/15);
[P,F] = SPECTRUM(X,NFFT,NOVERLAP,WINDOW,Fs)