FUNCTION REFERENCE

pwelch

Average overlapping windowed periodograms.

Average overlapping windowed periodograms.

Syntax

[pxx,w] = pwelch(x,window,noverlap,nfft)

Syntax

[pxx,f] = pwelch(x,window,noverlap,nfft,fs)

Defaults (also selected by []): symmetric Hamming window of max(1,floor(2*N/9)) samples to target eight segments, overlap=floor(window length/2), nfft=max(256,next power of two of window length), no detrending, PSD scaling, one-sided for real input. A scalar window specifies its length; a vector supplies its weights. Incomplete trailing segments are discarded. Columns are independent channels. Without fs, frequency is radians/sample and density is power per radian/sample; with fs it is Hz and power/Hz. Trailing 'onesided', 'twosided', 'centered', 'psd', 'power' work as in periodogram. With no outputs, plots dB versus frequency.

Example

[p,w] = pwelch(1:64);

Example

[p,f] = pwelch([(1:64)' (64:-1:1)'],hamming(16),8,32,100);

Differences from MATLAB: no confidence intervals, reassignment, frequency-vector grids, or alternative averaging; finite arrays only. FFT length must be at least window length and at most 1048576; work and memory limits also apply. Short inputs can yield a segment count other than eight.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.