pwelch
Welch power spectral density estimate.
📝Syntax
[Pxx, F] = pwelch(X)
[Pxx, F] = pwelch(X, window, noverlap, NFFT, Fs)
[Pxx, F] = pwelch(..., FREQRANGE)
[Pxx, F] = pwelch(..., SPECTRUMTYPE)
📥Input Arguments
Parameter Description
X input signal.
window window vector or length.
noverlap number of overlapping samples.
NFFT FFT length.
Fs sample rate.
FREQRANGE 'onesided', 'twosided', 'centered', 'half', or 'whole'.
SPECTRUMTYPE 'psd' or 'power'.
📤Output Arguments
Parameter Description
Pxx averaged spectral estimate.
F frequency vector.
📄Description

pwelch estimates a spectrum by averaging periodograms of overlapped segments.

💡Examples
[pxx, f] = pwelch(rand(256, 1), hamming(64), 32, 128, 1, 'centered');
🔗See Also
periodogramcpsd
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub