plot using matlab Linear distortion image input Take an imago signal as your inp
ID: 2081852 • Letter: P
Question
plot using matlab
Linear distortion image input Take an imago signal as your input, and examine the effect of linear distortion and zero-forcing filter based equalization. More specifically, consider y(t) = h (t) *x(t) + n(t), where h(t) = delta(t) + 0.5 delta (t - 1), and n(t) is the white Gaussian noise. You need to consider the cases where SNR = 10: 2: 24dB. For the equalization output, plot the MSE vs. SNR. In your presentation, show the results of distortion mid noise on your input signal with and without the equalizer.Explanation / Answer
clc;
close all;
clear all;
t = 0:1:100;
[IMG2,map] = imread('lenna.jpg');
IMG1 = (rgb2gray(IMG2));
ht = [1 0.5];
SNR = 10:2:24;
len = length(SNR);
IMG_vctr = reshape(IMG1,1,numel(IMG1));
N = [];
for i = 1:1:length(SNR)
TEMP = exp(SNR(i)/20);
N(i) = IMG1(i)./(TEMP);
end
Y_CONV = conv(IMG_vctr,ht);
Y_TRUN = Y_CONV(1,length(SNR));
Y = Y_TRUN + N;
MSE = [];
for i = 1:1:length(SNR)
MSE(i) = (Y(i) - IMG_vctr(i)).^2;
end
plot(SNR,MSE);
title('SNR vs MSE with equalizer');
ylabel('MSE');
xlabel('SNR');
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.