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 1: | Line 1: | ||
| [[Jodi Hodge|Back to my home page]] | [[Jodi Hodge|Back to my home page]] | ||
| 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 it when it repeats the function should be periodic. If the sample range is not a multiple of the period them when the DFT repeat the function will have disctonuity at the restarting point. | ||
| The DFT function assumes that the signal is periodic. | |||
| Example octave script no leakage | |||
| fs=1500 | fs=1500 | ||
| Line 16: | Line 15: | ||
| x= dft(y); | x= dft(y); | ||
| Example octave script with leakage | |||
| fs=1500 | fs=1500 | ||
Revision as of 16:17, 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 it when it repeats the function should be periodic. If the sample range is not a multiple of the period them when the DFT repeat the function will have disctonuity at the restarting point.
Example octave script no leakage
fs=1500
t=[1:20]/fs;
y=sin(2*pi*t);
x= dft(y);
Example octave script with leakage
fs=1500
t=[1:20]/fs;
y=sin(2*pi*t);
x= dft(y);