Upcoming SlideShare
×

# matab no9

665 views

Published on

Published in: Education
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
665
On SlideShare
0
From Embeds
0
Number of Embeds
22
Actions
Shares
0
4
0
Likes
0
Embeds 0
No embeds

No notes for slide

### matab no9

1. 1. Lab No.09 Fourier Series (Sum of Sinusoids) Designed by : Dawar Awan dawar@cecos.edu.pk CECOS College of Engineering and IT March – July 2012
2. 2. Concept  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. CECOS College of Engineering and IT March – July 2012
3. 3. Example : Square wave CECOS College of Engineering and IT March – July 2012
4. 4. 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 CECOS College of Engineering and IT March – July 2012
5. 5. Example : Square wave  Adding first three harmonics 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
6. 6. 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
7. 7. Sawtooth Wave  Fourier series approximation of sawtooth wave is given by the following equation CECOS College of Engineering and IT March – July 2012
8. 8. Task  Plot the following expression for N=10 CECOS College of Engineering and IT March – July 2012
9. 9. Triangular Wave  Fourier series approximation for a triangular wave is given be the following equation.  CECOS College of Engineering and IT March – July 2012
10. 10. Task  Plot the following equation for k=10 CECOS College of Engineering and IT March – July 2012