Kaiser window in causal, linear-phase form:
w = kaiser(M,beta); % M=length=257, beta=8Zero-pad by a factor of 8 and convert to zero-centered form ( = FFT size = 2048):
wzp = [w((M+1)/2:M),zeros(1,N-M),w(1:(M-1)/2)];Kaiser window transform:
W = fft(wzp);Note: W = fft(w,N) would set up w in causal form in W instead of zero-phase form