COMSATS University Islamabad, Lahore Campus: Lab Terminal Exam (Spring-2020)
COMSATS University Islamabad, Lahore Campus: Lab Terminal Exam (Spring-2020)
COMSATS University Islamabad, Lahore Campus: Lab Terminal Exam (Spring-2020)
Take the last two digits of your Student ID and make second last digit equal to “P” and last digit equal to
“Q”. For example, if your registration number is FA18-BEE-013 then P=1 and Q=3 (in case any digit P, Q
or the computed expression using P and Q becomes 0, replace it with 9 and mention it clearly in your .m
files and solutions). Solve the following questions by clearly mentioning and putting the value of ‘P’ and
‘Q’ in the appropriate places in your solutions.
Question No. 01 [Lab.CLO1-PLO5] [1+3+1+2+3= 10 Marks]
P
x[n]
n P
2 PQn
Given the signal
e. Apply the scaling property on the given signal with a scaling factor of Q 2 and compute the error.
Question No. 02 [Lab.CLO1-PLO5] [2+3+1+2+1+2= 11 Marks]
y (t ) is defined as
A signal 1
Q
y1 (t ) cos(2 Pt )
2
a.Construct a MATLAB code that computes the Fourier transform of the given signal.
b.Plot the result of part-a using ‘plot()’ command in MATLAB
c. Construct a MATLAB code that computes the Laplace transform of the given signal.
d.Plot the result of part-c using ‘plot()’ command in MATLAB
signals
y1 (t ) and y2 (t ) with scalars 1 and 2 .
Question No. 04 [Lab.CLO1-PLO5] [1.5+1+0.5+1+2= 6 Marks]
x(t ) (1 Q)e Pt
a. Using the complex Fourier series representation, construct a MATLAB code that computes the Fourier
series coefficients for the given signal.
b. Estimate the signal x(t) using ‘Q’ Number of Terms of the Fourier Series coefficients.
c. Plot the result of part-b using ‘plot()’ command
d. What will happen if you increase the number of Terms from Q to your complete Roll Number?
e. Compute the response of part-d in MATLAB and show your results using plot() command.
Viva voce.
Software Lab Evaluation Rubrics for Accessing Terminal Exam Performance
Student developed a
good systematic
procedure for testing Student demonstrated the
Student was able to identify
software code that ability to test software code in Student demonstrated
Ability to the problems in software
allowed for quick order to identify technical little or no ability to
troubleshoot code but required some
identification of problems, and was able to troubleshoot software
software assistance in fixing some of
problems solve any problems with little code for the lab.
the problems
or no assistance
Student good at
analyzing the data