Keywords: Window function (rectangular).svg Window function and frequency response - Rectangular svg rectangular window and frequency response Own 2005-12-14 Bob K converted to SVG by Alessio Damato source full resolution http //upload wikimedia org/wikipedia/commons/b/bd/Window_function_ rectangular png author http //en wikipedia org/wiki/User Bob_K Matlab commands <source lang Matlab > N 128; k 0 N-1; dr 60; w ones 1 N ; 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 ylim 0 2 set gca 'XTick' 0 1/8 1 N-1 set gca 'XTickLabel' '0 N-1' grid on ylabel 'amplitude' xlabel 'samples' title 'Window function rectangular ' 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' '-60 -50 -40 -30 -20 -10 0' grid on ylabel 'decibels' xlabel 'DFT bins' title 'Spectral leakage from a rectangularly windowed sinusoid' </source> I have saved both plots in EPS then I have converted them to SVG with Scribus and merged them with Inkscape Improvements Convert to international Window function |