Sunteți pe pagina 1din 8

EECE 301 Signals & Systems Prof.

Mark Fowler
Discussion #5
Fourier Series Examples

Fourier Series Examples

Example #1

x(t )
1 -2 -1 1 2

e t

choose
1 t 0 +T ck = x(t )e jk0t dt T t0 1 2 = x(t )e jkt dt 2 0 2 1 1 t jkt = e e dt + 0 e jkt dt 1 2 0 1 1 (1+ jk ) t dt = e 0 2 1 1 (1+ jk )t e = 2 1 + jk 0
1

2 T = 2 0 = = rad / sec 2 1 1 (1+ jk ) e 1 0 = 2(1 + jk )

1 e 1e jk = 2(1 + jk )

Note : e

jk

1, even k = 1, odd k

or equivalently e jk = (e j ) k = (1) k

So

1 e 1 (1) k ck = 2(1 + jk )

Now we can use Matlab to plot |ck| & ck

(rad/sec)

(rad)

(rad/sec)

Example #2 1

x(t )

-3

-2

-1

1 T

pick t0 = 1
ck =

T = 2 0 =

From Integral Table


te jkt dt
jkt 1

e = ( jkt 1) 2 ( jk ) 1

k 0

e ax xe ax dx = 2 ( ax 1) a a0
Note : e jk = ( 1) k ( j ) 2 = j 2 = 1

( 1) k [( jk 1) ( jk 1)] = 2 2 k
cancel

+ jk 2 (1) k + j 2(1) k ck = = 2 2 k k
Easy to get the magnitude results:

k 0

Also

c0 = tdt = 0
1

Harder to get the phase results:

2 ck = k c0 = 0
When k < 0:

k 0

ck is j(neg)(-1)k When k > 0: ck is j(pos)(-1)k Since j(neg) = -/2 Since j(pos) = /2 we get this

0 , ck = , 2 2

k =0 k positive & even k negative & odd k positive & odd , k negative & even

(rad/sec)

(rad)

(rad/sec)

Matlab Explorations disc_05_FS_example.m


function Disc_05_FS_example(type) % % Computes FS-based approximation to various signal types and plays sound % % Input: type = 'ramp' % 'rand' % 'tone1' ... no FS used % 'tone2' % 'pulse' % 'square' Fs=60000; Ts=1/Fs; t=(0:60000)*Ts; ft=2*pi*440*t; N=length(t); etc.

S-ar putea să vă placă și