MATLAB Question Solution Problem 9: Solution
MATLAB Question Solution Problem 9: Solution
Problem 9:
Solution:
MATLAB code:
%hw553714
clc;clear;close all
load hw553714 % loads w, H(w), Noisy Data y(n), Original Data x(n)
%Note - Original data is given here only for illustration
figure(1)
plot(w,abs(Hw),'-*') %Plot noisy channel frequency response data
title('Noisy Frequency response of the channel ');
%Model Validation
figure(2)
plot(w,abs(Hw),'-*')
title('Frequency response of the channel ')
hold on;
[ModelHw,w]=freqz(Num_H,den_H);
plot(w,abs(ModelHw),'-r')
title('Model Validation - |H(w)| (Blue) and |Model-H(w)| (Red) ')
hold off;
Plot of Yf(n):