File Exchange

image thumbnail

WelchWin: Welch (parabolic) window function

version 1.0.0.0 (1.36 KB) by Andrew Davis
The function returns a parabolic window of length n. This is useful for spectral estimation.

2 Downloads

Updated 09 Nov 2012

View License

WELCHWIN Welch (parabolic) window

Usage:
w = welchwin(n) returns the n-point parabolic window

n: scalar window length

w: column vector of window values

Example:
t = (0:9)';
s = rand(1,10)';
n = length(s);
w = welchwin(n);
s2 = s.*w;
plot(t, s, 'ko', t, s2, 'r-')
legend('original data', 'windowed data')

See also: RECTWIN

Cite As

Andrew Davis (2019). WelchWin: Welch (parabolic) window function (https://www.mathworks.com/matlabcentral/fileexchange/38978-welchwin-welch-parabolic-window-function), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

@Leandro: The result is in fact symmetric. Perhaps you're expecting N+1 points, rather than 0 <= i < N? See the definition here: http://paulbourke.net/miscellaneous/windows/.

Leandro

The result is not symmetric.

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux