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

Complete the highlighted mathlab code, it needs to have a for loop, with the cor

ID: 1998955 • Letter: C

Question

Complete the highlighted mathlab code, it needs to have a for loop, with the correlation of the two signals in the code, signal1 and signal0. B Modulation and Demodulation Functions function loutsignals,time modulation (inBits) pulsewidth 2e-9; timeWindow 5e-91 carrier Freq 4e9: signal BW 1.5/pulsewidth: OsFactor 1 carrier Freq/signalBW; Isignall,time pulsesignal (pulsewidth,timeWindow, osFactor); signall signall. squareSignal (time, carrier Freq); carrier 0 6e9: osFactor0 1 carrier 0/signalBW; Isignal0,time pulse signal (pulsewidth,timeWindow, osFactor0); signal signa 10. squaresignal. (time, carrier Freq); inBits in (1) Bits nBits length (in Bits) outsignals zeros (signalLength,nBits) col0 in Bits 01 coll in Bits 11 out signals (1,col0) repmat (signal0,1,sum (co10))1 outsignals(1,coll) repmat (signall, 1,sum (coll))1 return function loutBits] demodulation (insignals) SNRmin 10 (12/10) Ps sum (modulation(1). 2)1 Poo Ps./SNRmin1 pulsewidth 2e-91 timeWindow 5e-91 carrier Freq 4e91 signalBW 1.5 /pulsewidth: os Factor 1 carrier Freq/ signalBW1 Isignall,time pulse signal (pulsewidth,timeWindow,osFactor)1 signal signall. square signal (time, carrierFreq) out Bits zeros (1,size(insignals,2)) for i 1 size (insignals, 2) outBits (i) corr (insignals (1,i), signall) end return

Explanation / Answer

Go for such a correlation:

x= signal 1;

y= signal 0;

h= xcorr(x,y);

figure;

subplot (3,1,1)

stem(h);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote