please show all the work nice and neat using MATLAB e Create
please show all the work nice and neat using MATLAB
(e) Create three 1023-chip PRNs as follows. Define X1 as P 19 delayed by 350 chips, x is defined as PRN 25 delayed by 905 chips, and X3 is PRN 5 delayed by 75 chips. Sum these three PRNs together and correlate the result with a replica of PRN 19. Is the peak of the correlation where you had expected it to beSolution
chip1023 = 1023-chip (PRN19:PRN25:PRN75:end, :);
%Correlate:
corrvec = zeros (1 , s*3) ; %initialize corrvec
corrvecBL = zeros (1, s*3) ; %initialize bandlimited corrvec
dO - round(s*3/2); %initial delay for corrvec
d = zeros (1, s*3 ) ; %initialize vector of delays
for i=1 :s*3
d(i) i-l-d0;
cshift = circshift (code, [0, d ( i)]) ; %shifted replica of code
corrvec (i) = code*cshift\' ; %ideal corrvec at delay d( i)
corrvecBL (i) = codeBL*cshift\' ; %bandlimited corrvec at delay d(i)
end
x1 delayed = max (corrvecBL);
PRN = PRN19 PRN 25 PRN 5 (PRN (chips)) ;
intPRN code*chips; %integrations of code*chips
PRNIntchip = PRN (intchip) ;
snr = (length(code1)^3)/(X1,X2,X3(intchip350,905,75)^3);%theoretical snr = Mc
%Normalize chip
chipBL chipBL/PRN(PRN(chipBL)); %normalized, bandlimited chip,
PRNchipdt = PRN(PRN(chipBL));
