File:Window function (gauss).svg
Summary
| Description |
English: Gauss window and frequency response for sigma = 0.4. I saved both plots in EPS, then I converted them to SVG with Scribus and merged them with Inkscape |
|||
| Date | ||||
| Source | Own work based on: Window function (gauss).png by Bob K | |||
| Author | Alessio Damato | |||
| Other versions |
Derivative works of this file: Window function and frequency response - Gaussian (sigma = 0.4).svg: |
|||
| SVG development | Category:Valid SVG created with MATLAB#Window%20function%20(gauss).svgCategory:SVG created also with Inkscape
|
Source code

This media was created with MATLAB (numerical computing environment)Category:Images with MATLAB source code
Here is a listing of the source used to create this file.
Here is a listing of the source used to create this file.
N=128;
k=0:N-1;
dr = 60;
sigma = 0.4;
w = exp(-0.5*( (k-(N-1)/2)/(sigma*(N-1)/2) ).^2);
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 (Gauss, \sigma = 0.4)')
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('Frequency response (Gauss, \sigma = 0.4)')
Licensing
| This work has been released into the public domain by its author, Bob K at English Wikipedia. This applies worldwide. In some countries this may not be legally possible; if so: Bob K grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
This image (or all images in this category) uses inside labels or attached captions in a specific script or language and should be converted to a language neutral form. This would allow its use in all Wikimedia projects and, more importantly, all Wikimedia languages.
|