close
Jump to content

File:Window function (rectangular).svg

From Wikimedia Commons, the free media repository
Original file (SVG file, nominally 901 × 346 pixels, file size: 472 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Rectangular window and frequency response. 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 (rectangular).png by Bob K
Author Alessio Damato
Other versions Derivative works of this file:  Window function and frequency response - Rectangular.svgImage
SVG development
InfoField
Image The SVG code is valid.
Image This vector image was created with Inkscape.
Image
This file has been superseded by Window function and frequency response - Rectangular.svg. It is recommended to use the other file. Please note that deleting superseded images requires consensus.
new file

Source code

The logo of MATLAB – numerical computing environment
The logo of MATLAB – numerical computing environment
This media was created with MATLAB (numerical computing environment)
Here is a listing of the source used to create this file.

Deutsch  English  +/−

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')

Licensing

[edit]
Public domain This work has been released into the public domain by its author, Alessio Damato. This applies worldwide.
In some countries this may not be legally possible; if so:
Alessio Damato grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Image
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.

беларуская (тарашкевіца)  català  čeština  Deutsch  English  español  فارسی  suomi  français  magyar  italiano  日本語  한국어  македонски  Bahasa Melayu  Plattdüütsch  Nederlands  português  русский  sicilianu  slovenčina  slovenščina  српски / srpski  中文  中文(简体)  +/−

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current20:12, 22 October 2007Thumbnail for version as of 20:12, 22 October 2007901 × 346 (472 KB)Alejo2083 (talk | contribs)== Summary == {{Information |Description= rectangular window and frequency response |Source=self-made |Date=14-Dec-2005 |Author= Bob K, converted to SVG by ~~~ }} source: http://en.wikipedia.org/wiki/Window_Function author: http://en.wiki

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: