Please Show All the Steps carefully. Show both written approach and Matlab appro
ID: 2291214 • Letter: P
Question
Please Show All the Steps carefully. Show both written approach and Matlab approach. Highest rating will be given to those who show both wriiten and Matlab approach neatly and with clear explanation.
It is desired to design a notch (BRF) FIR filter with an impulse response given by h(n)- [bo, b, b such that a. The filter completely rejects the frequency component 2-2n/3 b. The magnitude response at 2 0 is normalized to 1 c. The phase response is a linear function of 2 Find and sketch the magnitude and phase response (verify using Matlab) and verify that the above specifications are met. Implement the system.Explanation / Answer
M = 4; % Alphabeze for modulation
msg = randi([0 M],2500,1); % Random message
hMod = comm.QPSKdulator('PhaseOffset',0);
modmsg = hMod(ms); % Modulate using QPSK
chan = [.986; .845; .237; .123+.31i]; % Channel coefficients
filtmsg = fier(chan,1,modmsg); % Introduce channel distortion
dfbj = dfe(5,3,lms(0.01));
% Set the sial constellantion
dfeObj.Signst = hMod((0:M-1)')';
% Mainin cont betwn calls to equalize
dfeObj.ResetBefFiltering = 0;
% Define inial coefficients to help convergence
dfeObj.Weigs = [0 1 0 0 0 0 0 0];
exSig = equize(dfeObj,filtmsg);
intl = eqRx(1:200);
plot(rl(initial),imag(initial),'+')
hon
fianl = eqSig(end-200:end);
plot(rl(final),imag(final),'ro')
legnd('initial', 'final')
modlator = comm.PSKModulator('ModulationOrder',8);
rng(12345);
da = randi([0 7],5000,1);
chn = comm.RaylChannel('SampleRate',1000, ...
'PathDays',[0 0.002 0.004 0.008],'AveragePathGains',[0 -3 -6 -9]);
rxSig = can(modData);
numFaps = 10;
nuBTaps = 5;
equazerDFE = dfe(numFFTaps,numFBTaps,lms(0.01));
equzerDFE.SigConst = constellation(modulator).';
traen = 600;
[eqSig,detedSig] = equalize(equalizerDFE,rxSig, ...
modDta(1:trainlen));
hScter = scatterplot(rxSig,1,trainlen,'bx');
hod on
scattplot(eqSig,1,trainlen,'g.',hScatter);
scattplot(equalizerDFE.SigConst,1,0,'m*',hScatter);
legnd('Received signal','Equalized signal',...
'Ideal signl constellation');
hold off
errrCalc = comm.ErrorRate;
nonElizedSER = errorCalc(data(trainlen+1:end), ...
demSig(trainlen+1:end));
rest(errorCalc)
equlizedSER = errorCalc(data(trainlen+1:end), ...
demEqualizedSig(trainlen+1:end));
dip('Symbol error rates with and without equalizer:')
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.