0% found this document useful (0 votes)
35 views2 pages

Lab Report Template 7

This lab report describes Muhammad Abdullah completing two tasks to draw Fourier series representations of common waveforms. In task 1, the student drew the Fourier series of a square wave using the given equation. In task 2, the student drew the Fourier series of a sawtooth wave by summing the sine terms with different frequencies and normalizing by pi. Code and generated graphs are included for both tasks.

Uploaded by

Muhamad Abdullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

Lab Report Template 7

This lab report describes Muhammad Abdullah completing two tasks to draw Fourier series representations of common waveforms. In task 1, the student drew the Fourier series of a square wave using the given equation. In task 2, the student drew the Fourier series of a sawtooth wave by summing the sine terms with different frequencies and normalizing by pi. Code and generated graphs are included for both tasks.

Uploaded by

Muhamad Abdullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab Report #07

Lab. Fourier Series


Name Muhammad Abdullah Reg # FA17-BEE-081
Class & Section BEE-4D Semester SP-19
Preformed Date 27 02 2019 Submitted Date 28 02 2019

Task 1 : Draw the Fourier series of square wave with the help of
x(t) =1/2 + 2/Π [ cos (w0t) – 1/3 cos(3w0t) +1/5 cos(5w0t) -1/7 cos (7w0t) +
1/9 cos (9w0 t) + ....]
Code:
t=0:.01:10;
f=0.25;
w0=2*pi*f;
x=(1/2)+(2/pi)*(square(w0*t)-(1/3)*square(3*w0*t)+(1/5)*square(5*w0*t)-
(1/7)*square(7*w0*t)+(1/9)*square(9*w0*t));
plot(t,x)
Graph:

Task 2: Draw the Fourier series of Saw tooth wave


t = 0:.1:10;
y = 0.5 + sin(t)/pi;
Code:
t=0:.1:10;
f=.25;
x=2/pi+sin(t)/pi+sin(2*t)/(2*pi)+sin(5*t)/(5*pi)+sin(10*t)/(10*pi);
plot(t,x)

Graph:

You might also like