Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Digital Signal is more resilient against the distortion that takes place duri

ID: 3585402 • Letter: 1

Question

1. Digital Signal is more resilient against the distortion that takes place during transmission. Easiest method of reconstructing digital signal from the received signal with distortion is setting all values with magnitude more than 0.5 to 1 and others to zero. On Canvas Homework folder, you will find the data file "random_number.txt". Use this signal to create a replica of the following small three plots in a single figure. The third one is the absolute value of the difference between the received signal and reconstructed signal. Requirement 1) Create your own pseudo code it can be flowchart. (Create a word document for this) 2) For the second plot use stem function in Matlab 3) Use a single script that will replicate the result below after it load thel random_number.txt" 4) Replica is replica. It should be the exact copy of the figure title, axis, and amplitude of signal.

Explanation / Answer

all parts
xo(n) = [1 2 3 4 5 6 7]; %original signal
yo(n) =[.2 .4 .3 .5 .1 .2 .4];

A = gallery('integerdata',99,[7,2],0); %import .txt file
M = dlmread('yourfilename.txt'); % replace yourfileneame by the file you want to import like random_number.txt
for n=1:M
%get the data from imported file
Y(n) = M(n,1);
end
for n = 1:M
rd(n) = yo(n)+Y(n); %received signal where Y is distortion and y0 is original signal
end
subplot(3,1,1) %plot first graph received signal
plot (x,rd)
for n= 1:x %reconstruct digital signal
if rd(n)>0.5
t(n)= 1;
else
t(n)=0;
end
subplot(3,1,2)
stem(t)
for n =1:x %absolute value = received signal and reconstructed signal
if rd(n)>0.5
t(n)= t(n)-rd);
t(n)= 1-t(n);
else
t(n)=0;
end
end

subplot(3,1,3)
plot(x,t)

flowchart
receive signal = original signal+distortion
data greater then 0.5 eualte to 1 and else equate to 0
absolute value calculate by different of 0.5