I am trying to update some code that uses the deprecated function PSD to use PWELCH instead; however, I am getting completely different results when I am using what seems to be the same parameters. Does anyone know why? Here are what I believe to be the equivalent function calls: [pxx,f] = pwelch(data, hanning(1024), [], 1024, 250); [pxx,f] = psd(data,1024,250,hanning(1024)); Where: data = signal in a vector hanning(1024) = window vector 1024 = nfft, number of points in the fft 250 = Fs, the sampling rate [ ] = noverlap, defaults to 50% window overlap Matlab has removed all help information for the PSD function, and instead says to use its functional equivalent pwelch, so I don't have anyway of looking up what the original documentation says about the function's inputs and outputs. Could the outputs be scaled differently? Is the PSD calculated differently between the two functions?
Neeta Dsouza answered .
2025-11-20