Re: Fourier analysis with missing data



Scott Seidman <namdiesttocs@xxxxxxxxxxxxxx> wrote in
news:Xns96D673953FB11scottseidmanmindspri@xxxxxxxxxxx:

> "Paige Miller" <paige.miller@xxxxxxx> wrote in news:ef157eb.-1
> @webx.raydaftYaTP:
>
>> Suppose I have data collected 1000 times per second. Some of the data
>> turns out to be missing. How can I do a Fourier analysis on data with
>> missings?
>>
>
> http://groups.google.com/group/comp.soft-
> sys.matlab/browse_frm/thread/a07d52743ecd054/ff8c4c267976ea55?
> lnk=st&q=fourier+irregular+sample+group:*.matlab&rnum=1
> &hl=en#ff8c4c267976ea55
>
>
> http://groups.google.com/group/comp.soft-
> sys.matlab/browse_frm/thread/8e8704781babe1e7/edebe2b2eb56b018?
> lnk=st&q=fourier+irregular+sample+group:*.matlab&rnum=4
> &hl=en#edebe2b2eb56b018
>
>
> Lots of info in that second thread
>


Here's AJ Johnson's contribution to that thread::

To cut to the chase, as they say, here is the code.
Cheers! -Aj

function X=dft(t,x,f)
% function X=dft(t,x,f)
% Compute DFT (Discrete Fourier Transform) at frequencies given
% in f, given samples x taken at times t:
% X(f) = sum { x(k) * e**(2*pi*j*t(k)*f) }
% k

t = t(:); % Format 't' into a column vector
x = x(:); % Format 'x' into a column vector
f = f(:); % Format 'f' into a column vector

% It's just this simple:
W = exp( 2*pi*j * f*t');
X = W * x;
--
Scott
Reverse name to reply
.



Relevant Pages

  • Re: Confused about DFT and Fourier Series and Fourier Transform?
    ... You can also view the DFT as a filter bank, as the Z transform evaluated ... > time and two have discrete time which is another yes/no pair. ... > frequencies can only take on discrete values and if the time is ... > FS, or Fourier Series, is the Fourier Transform of rotation angles. ...
    (sci.math)
  • Re: Zero Padding in radix 2 FFT
    ... > added unless there is a rational relationship between their frequencies? ... sinusoidals is periodic, i.e. ... Both the Fourier series and the DFT work under the constraint that the ... The reason is that the infinite-extent signal has infinite energy, ...
    (comp.dsp)
  • Re: Fourier Transform formula derivation
    ... I study computer engineering and I use the Fourier Transform ... Fourier Transform shows me the frequencies? ... is just one of many ways to project this periodicity ...
    (sci.math)
  • Re: Fourier Transform formula derivation
    ... Fourier Transforms can be informally considered as an expansion of the ... Xbecause it shows the spectrum of the frequencies x. ... It's not quite a rigorous proof. ... That's the _only_ precise definition that I know.) ...
    (sci.math)
  • Re: Proving the relationships between FSCTFT and CTFTDTFT
    ... Continuous-Time Fourier Transform. ... multiplication by an infinite Dirac comb samples the infinite real line to ... You end up with periodic, or aliased, frequencies. ... You end up with the finite discrete FT. ...
    (comp.dsp)

Loading