matab no9

10

Click here to load reader

Upload: moeen-khan-afridi

Post on 08-Jul-2015

69 views

Category:

Education


4 download

TRANSCRIPT

Page 1: matab no9

Lab No.09

Fourier Series (Sum of Sinusoids)

CECOS College of Engineering and IT March – July 2012

Designed by : Dawar [email protected]

Page 2: matab no9

CECOS College of Engineering and IT March – July 2012

Fourier series theory states that a periodic wave can be

represented as a summation of sinusoidal waves with

different frequencies, amplitudes and phase values.

The frequencies of the sinusoids are harmonically

related.

fk = k.fo

Where fo is the fundamental frequency and fk is the kth

harmonic.

Concept

Page 3: matab no9

CECOS College of Engineering and IT March – July 2012

Example : Square wave

Page 4: matab no9

CECOS College of Engineering and IT March – July 2012

Example : Square wave A square wave can be approximated by adding sine

waves, related to each other according to the following

equation.

Better approximation is achieved by increasing the

number of harmonics added

It can be seen that a square wave is composed of odd

harmonics

Page 5: matab no9

Adding first three harmonics

Example : Square wave

x=sin(2*pi*f*t);

y=(1/3).*sin(2*3*pi*f*t);

z=(1/5).*sin(2*5*pi*f*t);

w=4/pi*(x+y+z);

plot(t,w,)

CECOS College of Engineering and IT March – July 2012

Page 6: matab no9

Task

Approximate the square wave by adding first 10, 50, 100

harmonics. Observe the difference between the three

results.

CECOS College of Engineering and IT March – July 2012

Page 7: matab no9

Sawtooth Wave

Fourier series approximation of sawtooth wave is given

by the following equation

CECOS College of Engineering and IT March – July 2012

Page 8: matab no9

CECOS College of Engineering and IT March – July 2012

Task

Plot the following expression for N=10

Page 9: matab no9

CECOS College of Engineering and IT March – July 2012

Triangular Wave

Fourier series approximation for a triangular wave is

given be the following equation.

Page 10: matab no9

Task

Plot the following equation for k=10

CECOS College of Engineering and IT March – July 2012