



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Courtesy Dr. M. Tahir Akhtar Page 1 of 5
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
Q2.1 Program P2_1 was run. The plots generated are
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Comment on the output signal.
Q2.2 Change the index to generate only 10 samples of input signal. Stem plot x, x1, x2, x3.
Q2.3 If x2[n] =x[n] then verify that x1[n] = x[n+1] and x3[n] = x[n-1]. If true then Show this graphically by subplotting stem plots of x[n], x1[n], x2[n] and x3[n]
A copy of Program P2_2, Check Linearity/Non-linearity of Systems (For the system: num = [2.2403 2.4908 2.2403]; den = [1 -0.4 0.75]; with ic=0.0) is given
< Insert program code here. Copy from m-file(s) and paste. >
Q2.4 Program P2_2 was run for the following three different sets of values of the weighting constants,
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Courtesy Dr. M. Tahir Akhtar Page 2 of 5
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q2.6 Program P2_2 was run with nonzero initial conditions and for the following three different sets of
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Based on these plots we can conclude that the system with nonzero initial conditions and
A copy of Program P2_2: Checking Time Invariant/Varying Systems (num =
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Courtesy Dr. M. Tahir Akhtar Page 4 of 5
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
Q2.13 The first 41 samples of the impulse response of the discrete-time system of Project 2. generated by running Program P2_3 is given below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q2.14 The required modifications to Program P2_3 to generate the impulse response of the following
< Insert program code here. Copy from m-file(s) and paste. >
The first 45 samples of the impulse response of this discrete-time system generated by running
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q2.15 The MATLAB program to generate the impulse response of a causal LTI system of Q2.13 using
< Insert program code here. Copy from m-file(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Courtesy Dr. M. Tahir Akhtar Page 5 of 5
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
A copy of Program P2_5: Convolution (y=h*x) & Filtering (y1=filter(h,1,x1); x1=[x,zeros(1,8)] (where h = [3 2 1 -2 1 0 -4 0 3]; x = [1 -2 3 -4 3 2
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q2.20 Explore and find the difference between convolution and filtering if any.
Q2.21 Write at least five comments/suggestions about the labs.