0% found this document useful (0 votes)
9 views6 pages

Lab Reports No 10

The document outlines a lab focused on Fourier Series and its properties using MATLAB, with specific tasks to verify time shifting, linearity, time reversal, and scaling properties. It includes detailed MATLAB code for each task, along with instructions for plotting results. The evaluation criteria for the lab include engineering knowledge, problem analysis, design strategy, modern tools usage, and teamwork contributions.

Uploaded by

abdul.59wa
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)
9 views6 pages

Lab Reports No 10

The document outlines a lab focused on Fourier Series and its properties using MATLAB, with specific tasks to verify time shifting, linearity, time reversal, and scaling properties. It includes detailed MATLAB code for each task, along with instructions for plotting results. The evaluation criteria for the lab include engineering knowledge, problem analysis, design strategy, modern tools usage, and teamwork contributions.

Uploaded by

abdul.59wa
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/ 6

Rubrics name & number Marks

In-Lab Post-Lab

Engineeri R2: Use of Engineering Knowledge and follow


ng Experiment Procedures:
Knowledg Ability to follow experimental procedures, control variables,
e and record procedural steps on lab report.
R3: Interpretation of Subject Knowledge: Ability to
interpret and explain mathematical and/or visual forms,
including equations, diagrams, graphics, figures and tables.
Problem R5: Data/Evidence Measurements:
Analysis Ability to record raw data / evidence.
R6: Experimental Data Analysis:
Ability to interpret findings, compare them to values in the
literature, identify weaknesses and limitations.
Design R7: Implementing Design Strategy: Ability to execute a
solution taking into consideration design requirements and
pertinent contextual elements. [Block Diagram/Flow
chart/Circuit Diagram]

R8: Best Coding Standards:


Ability to follow the coding standards and programming
practices.

Modern R9: Understand Tools: Ability to describe and explain


Tools the principles behind and applicability of engineering
Usage tools.

R11: Tools Evaluation:


Ability to simulate the experiment and then using
hardware tools to verify the results.

Individual R12: Individual Work Contributions: Ability to carry


and out individual responsibilities.
Teamwork
R13: Management of Team Work:
Ability to appreciate, understand and work with
multidisciplinary team members.
Trigonometric Fourier Series
& Fourier Series Properties
10.1 OBJECTIVE
The main objective of this lab is to learn about Fourier Series and implementation of
this lab using MATLAB. Second objective is understanding a signal in term of sin cosine
and theta. Using Fourier Series how we can express a signal in term of sin, cosine and
theta. One of most important objectives of this lab is also that study the properties of
Fourier Series such as linearity, time scaling etc.

10.2.1 TASK1: Verify time shifting on

Clc
close all
clear all
t0=0;
t1=3;
T=10;
symst;
w=2*pi/T;
x1=t.*exp(-7*t)
x2=(t-t1).*exp(-7*(t-t1));
k=-10:10
c1=(1/T).*int(x2.*exp(-j*k*w*t),t,t0+t1,t0+T+t1)
left=eval(c1)
figure
subplot(2,1,1)
stem(k,abs(left),'fill','linewidth',2);
title('Cofficient of Left Side');
legend('Magnitude')
xlabel('Values of K')
ylabel('Magnitude or |ak|')
subplot(2,1,2)
stem(k,angle(left),'fill','linewidth',2);
legend('Angle')
xlabel('Values of K')
ylabel('Angle \theta ak')
a1=(1/T).*int(x1.*exp(-j*k*w*t),t,t0,t0+T)
c2=a1.*exp(-j*k*w*t1);
right=eval(c2)
figure
subplot(2,1,1)
stem(k,abs(right),'fill','linewidth',2);
title('Cofficient of Right Side');
legend('Magnitude')
xlabel('Values of K')
ylabel('Magnitude or |ak|')
subplot(2,1,2)
stem(k,angle(right),'fill','linewidth',2);
legend('Magnitude')
xlabel('Values of K')
ylabel('Angle \theta ak')
-3 -3
x 10 Cofficient of Left Side x 10 Cofficient of Right Side
3 3
Magnitude Magnitude

Magnitude or |ak|

Magnitude or |ak|
2 2

1 1

0 0
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
Values of K Values of K

4 4
Angle Magnitude
2 2
Angle  ak

Angle  ak
0 0

-2 -2

-4 -4
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
Values of K Values of K

10.2.2 TASK2:Verify Liner property on:

clc
close all
clear all
t0=0;
T=2*pi;
w=2*pi/T;
symst;
xt=cos(2*t);
yt=sin(t);
z1=6+9i;
z2=7;
f=z1*xt+z2*yt;
k=-5:5
left=(1/T)*int(f*exp(-j*k*w*t),t,t0,t0+T)
left=eval(left);
figure
subplot(2,1,1)
stem(k,abs(left),'fill','linewidth',2);
title('Cofficient of Left Side');
legend('Magnitude')
xlabel('Values of K')
ylabel('Magnitude or |ak|')
subplot(2,1,2)
stem(k,angle(left),'fill','linewidth',2);
legend('Angle')
xlabel('Values of K')
ylabel('Angle \theta ak')
a=(1/T)*int(xt*exp(-j*k*w*t),t,t0,t0+T)
b=(1/T)*int(yt*exp(-j*k*w*t),t,t0,t0+T)
right=a*z1+b*z2;
right=eval(right);
figure
subplot(2,1,1)
stem(k,abs(right),'fill','linewidth',2);
title('Cofficient of Right Side');
legend('Magnitude')
xlabel('Values of K')
ylabel('Magnitude or |ak|')
subplot(2,1,2)
stem(k,angle(right),'fill','linewidth',2);
legend('Magnitude')
xlabel('Values of K')
ylabel('Angle \theta ak')
Cofficient of Left Side Cofficient of Right Side
6 6
Magnitude Magnitude

Magnitude or |ak|

Magnitude or |ak|
4 4

2 2

0 0
-5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5
Values of K Values of K
2 2
Angle Magnitude
1 1
Angle  ak

Angle  ak
0 0

-1
-1

-2
-5 -4 -3 -2 -1 0 1 2 3 4 5 -2
-5 -4 -3 -2 -1 0 1 2 3 4 5
Values of K
Values of K

10.2.3 TASK3: Verify time reversal and scaling property on:

clc
close all
clear all
t0=0;
T=2*pi;
w=2*pi/T;
symst;
x1=t*sin(t);
x2=-t*sin(-t);
k=-10:10
a=(1/T).*int(x2.*exp(-j*k*w*t),t,t0-T,t0)
left=eval(a)
figure
subplot(2,1,1)
stem(k,abs(left),'fill','linewidth',2);
title('Cofficient of Left Side');
legend('Magnitude')
xlabel('Values of K')
ylabel('Magnitude or |a_k|')
subplot(2,1,2)
stem(k,angle(left),'fill','linewidth',2);
legend('Angle')
xlabel('Values of K')
ylabel('Angle \theta a_k')
a=(1/T).*int(x1.*exp(-j*k*w*t),t,t0,t0+T)
right=eval(a)
figure
subplot(2,1,1)
stem(-k,abs(right),'fill','linewidth',2);
title('Cofficient of Right Side');
legend('Magnitude')
xlabel('Values of K')
ylabel('Magnitude or |a of -k|')
subplot(2,1,2)
stem(-k,angle(right),'fill','linewidth',2);
legend('Magnitude')
xlabel('Values of K')
ylabel('Angle \theta a of -k')
Cofficient of Left Side Cofficient of Right Side
2 2

Magnitude or |a of -k|
Magnitude Magnitude

Magnitude or |ak|
1.5 1.5

1 1

0.5 0.5

0 0
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
Values of K Values of K

4 4
Angle Magnitude

Angle  a of -k
2 2
Angle  ak

0 0

-2 -2
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
Values of K Values of K

clc
close all
clear all
t0=0;
T=2*pi;
w=2*pi/T;
symst;
x1=t*sin(5*t);
k=-10:10
a=(1/T).*int(x1.*exp(-j*k*w*t),t,t0,t0+T)
left=eval(a)
figure
subplot(2,1,1)
stem(k,abs(left),'fill','linewidth',2);
title('Cofficient of Left Side');
legend('Magnitude')
xlabel('Values of K')
ylabel('Magnitude or |ak|')
subplot(2,1,2)
stem(k,angle(left),'fill','linewidth',2);
legend('Angle')
xlabel('Values of K')
ylabel('Angle \theta ak')
l=2;
T=T/l;
w=2*pi/T;
x2=t*l*sin(5*l*t)
k=-10:10
a=(1/T).*int(x2.*exp(-j*k*w*t),t,t0,t0+T)
right=eval(a)
figure
subplot(2,1,1)
stem(k,abs(right),'fill','linewidth',2);
title('Cofficient of Right Side');
legend('Magnitude')
xlabel('Values of K')
ylabel('Magnitude or |ak|')
subplot(2,1,2)
stem(k,angle(right),'fill','linewidth',2);
legend('Magnitude')
xlabel('Values of K')
ylabel('Angle \theta ak')
Cofficient of Left Side Cofficient of Right Side
2 2
Magnitude Magnitude

Magnitude or |ak|

Magnitude or |ak|
1.5 1.5

1 1

0.5 0.5

0 0
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
Values of K Values of K
4
4
Angle
Magnitude
2
Angle  ak

Angle  ak
0
0

-2
-10 -8 -6 -4 -2 0 2 4 6 8 10 -2
Values of K -10 -8 -6 -4 -2 0 2 4 6 8 10
Values of K

You might also like