Professional Documents
Culture Documents
Signals and Systems Lab 08 PDF
Signals and Systems Lab 08 PDF
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
Objectives
The goal of this laboratory is to be able to calculate the fourier series of discrete time signals and plot the
real part of the spectrum / Fourier series coefficients.
Lab Instructions
This lab activity comprises of three parts: Pre-lab, Lab Exercises, and Post-Lab Viva session.
The Pre-lab tasks should be completed before coming to the lab. The reports are to be submitted on
LMS.
The students should perform and demonstrate each lab task separately for step-wise evaluation
Only those tasks that completed during the allocated lab time will be credited to the students.
Students are however encouraged to practice on their own in spare time for enhancing their skills.
Lab Report Instructions
All questions should be answered precisely to get maximum credit. Lab report must ensure following
items:
Lab objectives
MATLAB codes
Results (graphs/tables) duly commented and discussed
Conclusion
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
LAB TASK#1
Description The continuous-time Fourier series expresses a periodic signal as a linear combination of
harmonically related complex exponentials. This task requires us to plot the signal, find its
aks and plots of magnitude vs k, w, f (Hz)and phase vs k.
CODE
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
PLOT
Discussion/Conclu The discrete-time Fourier transform of a discrete set of real or complex numbers x[n], for
sion all integers n, is a Fourier series, which produces a periodic function of a frequency
variable. In this task we made the use of loops and mod to display the signal and found its
period which was 10. Then we found the aks (Complex Fourier Coefficients) for the signal
using nensted for loops and then plot the several type of data points using aks. Such as
we plotted magnitutude of aks against k, aks vs w(rad/sec) , aks vs frequency (Hz) and
Then phase vs k. we grouped these plots together using subplots. Complex exponentials
are eigenfunctions of LTI systems, it is often useful to represent signals using a set of
complex exponentials as a basis. The continuous time Fourier series synthesis formula
expresses a continuous time, periodic function as the sum of continuous time, discrete
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
frequency complex exponentials.
LAB TASK#2
Descrip The discrete-time Fourier transform of a discrete set of real or complex numbers x[n], for all integers
tion n, is a Fourier series, which produces a periodic function of a frequency variable. We have to find
fourier series cofficients for given signal. This task requires us to plot the signal, find Its aks and plots of
magnitude and phase vs frequency.
if rem==0
array =[array,ones(1,5)];
else
array=[array,zeros(1,5)]
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
end
end
array
%plotting signal
subplot(3,3,1)
stem(array), xlabel('n'),ylabel('X[n]'),grid on;
%finding aks
array2=zeros(1,10);
for k = 0:9
for n = 0:18
array2(k+1)=array2(k+1)+array(n+1)*exp(-j*k*(pi/10)*n);
end
array2(k+1)=array2(k+1)/10;
end
% now plotting against
%plotting magnitutude of aks aginst k
subplot(3,3,2)
stem(array2), xlabel('k'),ylabel('Fourier Coefficient Ak'),grid on;
% plotting phase
subplot(3,3,3)
stem(angle(array2)), xlabel('k'),ylabel('Phase'),grid on;
% plotting against w rad/s
T=10;
w = (2*pi)/T; %fundamental frequency
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
Angularfrequencies = (1:1:10)*w;
subplot(3,3,4)
stem(Angularfrequencies,array2), xlabel('Frequency (rad/sec)'),ylabel('Fourier Coefficient Ak'),grid on;
% plotting against frequency in hertz
frequencies = Angularfrequencies/(2*pi);
subplot(3,3,5)
stem(frequencies,array2), xlabel('Frequency (HZ)'),ylabel('Fourier Coefficient Ak'),grid on;
PLOT
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
EE-XXX: Course Title Page 8
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
Conclu The discrete-time Fourier transform of a discrete set of real or complex numbers x[n], for all integers n,
sion/Di is a Fourier series, which produces a periodic function of a frequency variable. In this task we made the
scussio use of loops and mod to display the signal and found its period which was 10. Then we found the aks
ns (Complex Fourier Coefficients) for the signal using nensted for loops and then plot the several type of
data points using aks. Such as we plotted magnitutude of aks against k, aks vs w(rad/sec) , aks vs
frequency (Hz) and Then phase vs k. we grouped these plots together using subplots. The cn - called the
Fourier coefficients - tell us "how much" of the sinusoid ejω0kn is in f[n]. The formula shows f[n] as a
sum of complex exponentials, each of which is easily processed by an LTI system (since it is an
eigenfunction of every LTI system). Mathematically, it tells us that the set of complex
exponentials {∀k,k∈Z:(ejω0kn)} form a basis for the space of N-periodic discrete time functions.
THE END
This study source was downloaded by 100000815565319 from CourseHero.com on 11-27-2022 12:23:52 GMT -06:00
https://www.coursehero.com/file/107756504/SIGNALS-AND-SYSTEMS-LAB-08-pdf/
Powered by TCPDF (www.tcpdf.org)