Re: fft on square wave
- From: "Matt " <xys@xxxxxxxxxxxx>
- Date: Wed, 13 May 2009 15:17:02 +0000 (UTC)
Greg Heath <heath@xxxxxxxxxxxxxxxx> wrote in message <530b5762-c7ff-43c5-bd95-a10c347355bd@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
F ?t(f(t));
% plot the coefficients (should be a real function)
Should never make that assumption always check
imag(F).
Tomas, since you're dealing with an even function (symmetric across t=0), the FFT will be real if you have an odd number N of samples and if t=0 is one of them.
Once you modified your time sampling axis to t=(-.2:.01:.2), this is now the case, so you can expect essentially real valued results. Of course, MATLAB doesn't know about the symmetry and will still return a complex result, but using imag(F) you should be able to verify that it contains zeroes up to numerical round-off.
.
- References:
- fft on square wave
- From: Tomas
- Re: fft on square wave
- From: Greg Heath
- fft on square wave
- Prev by Date: Re: Problem with Matrix Indexing after Using the Round Function
- Next by Date: Help with gene ontology
- Previous by thread: Re: fft on square wave
- Next by thread: Re: Berlekamp massey algorithm LFSR
- Index(es):
Relevant Pages
|
Loading