You cannot choose it inside of fft(). What you do is multipy the data by the window before you use fft()
x = randn(1e3,1);
x = x.*hamming(1e3);
xdft = fft(x);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!