Keywords: Window function (hann).svg Window function and frequency response - Hann svg Hann window and frequency response Own 2005-12-15 Bob K converted to SVG by Alessio Damato source full resolution http //upload wikimedia org/wikipedia/commons/f/ff/Window_function_ hann png author http //en wikipedia org/wiki/User Bob_K Matlab commands <source lang Matlab > N 128; k 0 N-1; dr 100; w 0 5 - 0 5 cos 2 pi k/ N-1 ; B N sum w 2 /sum w 2 noise bandwidth bins H abs fft w zeros 1 7 N ; H fftshift H ; H H/max H ; H 20 log10 H ; H max 0 dr+H ; figure area k w 'FaceColor' 0 4 6 xlim 0 N-1 set gca 'XTick' 0 1/8 1 N-1 set gca 'XTickLabel' '0 N-1' grid on ylabel 'amplitude' xlabel 'samples' title 'Window function Hann ' figure stem 1 8 N -1-4 N /8 H '-' ; set findobj 'Type' 'line' 'Marker' 'none' 'Color' 871 49 0 xlim -4 N 4 N/8 ylim 0 dr set gca 'YTickLabel' '-100 -90 -80 -70 -60 -50 -40 -30 -20 -10 0' grid on ylabel 'decibels' xlabel 'DFT bins' title 'Frequency response Hann ' </source> I have saved both plots in EPS converted them in EPS with Scribus merged them with Inkscape Improvements Convert to international Window function |