14 lines
453 B
Plaintext
14 lines
453 B
Plaintext
load tmpEndAcquisitionphase.mat
|
|
clc
|
|
%Refine the frequency range to choose the most suitable frequency
|
|
caCode=generateCAcode(PRN);
|
|
codeValueIndex=floor((1:10*samplesPerCode)/settings.samplingFreq*settings.codeFreqBasis);
|
|
longCaCode=caCode((rem(codeValueIndex,1023)+1));
|
|
xCarrier=signal0DC(codePhase:codePhase+10*samplesPerCode-1).*longCaCode;
|
|
plot(xCarrier);
|
|
numPts=8*(2^(nextpow2(length(xCarrier))));
|
|
|
|
fftRst=abs(fft(xCarrier,fftNumPts));
|
|
|
|
plot(fftRst)
|