ASN11 - Leakage demonstration in Octave: Difference between revisions
Jump to navigation
Jump to search
Jodi.Hodge (talk | contribs) No edit summary |
Jodi.Hodge (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
Leakage occurs when the Discrete Fourier Transform (DFT) is applied to a signal whose range is not a multiple of the total period. |
Leakage occurs when the Discrete Fourier Transform (DFT) is applied to a signal whose range is not a multiple of the total period. |
||
The DFT function assumes that the signal is periodic. |
The DFT function assumes that the signal is periodic. |
||
example octave script no leakage |
|||
fs=1500 |
|||
t=[1:20]/fs; |
|||
y=sin(2*pi*t); |
|||
x= dft(y); |
|||
example octave script no leakage |
|||
fs=1500 |
|||
t=[1:20]/fs; |
|||
y=sin(2*pi*t); |
|||
x= dft(y); |
Revision as of 15:14, 21 December 2009
Leakage occurs when the Discrete Fourier Transform (DFT) is applied to a signal whose range is not a multiple of the total period. The DFT function assumes that the signal is periodic.
example octave script no leakage
fs=1500
t=[1:20]/fs;
y=sin(2*pi*t);
x= dft(y);
example octave script no leakage
fs=1500
t=[1:20]/fs;
y=sin(2*pi*t);
x= dft(y);