a In a digital communication transceiver signal processing i
a. In a digital communication transceiver, signal processing is used to model the signal received
from a channel. When a signal is passed through the channel, the channel output can be
modeled as y(n)=0.6x(n)-0.1x(n- 2)+0.2x(n-3). If the transmitted signal is given by
x(n)=sin(2*pi/12*n)+cos(2*pi/6*n) for n=0 to 12
= cos(2*pi/24*n) for n=13 to 47
= 0 otherwise
Write a suitable matlab program with comments to indicate the logic used and generate the
discrete plot for x(n) and y(n) for n=0 to 60.
b. Critically analyze the system representation specified by part(a) in frequency plane. Obtain
the frequency response of the channel (Hint : Freqz command in Matlab can be used.)
Solution
clc;
clear;
pi=3.144;
n=0:12;
a=sin((2*pi)./(12*n))+cos((2*pi)./(6*n))
n=13:47;
b=sin((2*pi)./(12*n))+cos((2*pi)./(6*n))
x=a+.b;
subplot(2,2,1)
stem(n,x)
y=0.6.*x-0.1.*x(n-2)+0.2.*x(n-3);
subplot(2,2,2)
stem(n,y);
