# Discrete fourier transform

#### Cinek

Joined Jan 11, 2009
13
I am preparing for exam... and i stuck on one task...

How we can calculate DFT of time function.... (e.g.
x(t)= { =3 (for t=(-1,0) ; =1 (for t=(0,1) }.....

up to now i thought DFt is only applicable in case of sequences only...

#### mik3

Joined Feb 4, 2008
4,843
Use the general formula for the Fourier transform:

X(f)=integral of {x(t)*exp(-j2*pi*f*t) dt}

For the first case evaluate the integral from -1 to 0 and set x(t)=3
For the second case evaluate the integral from 0 to 1 and set x(t)=1