資源簡介
This code gives the PRACH detection in the Up-link Process.
代碼片段和文件信息
function?P?=?LteDemoPRACHFalseAlarm(NSubframes)
????
????warning(‘off‘?‘MATLAB:oldPfileVersion‘);
?
????if?nargin==0
????????NSubframes?=?10;
????end?
ue.NULRB=9;????????????????????%?9?Resource?blocks
ue.DuplexMode?=?‘FDD‘;?????????%?FDD?duplexing?mode
prach.Format?=?0;?????????%?Per?TS36.104?Table?8.4.2.1-1
prach.SeqIdx?=?819;???????%?Under?trial?restrictions?(816?19)
prach.CyclicShiftIdx?=?1;?%?Per?TS36.141?Table?A.6-1
prach.HighSpeed?=?0;??????%?Per?TS36.104?Table?8.4.2.1-1
prach.FreqOffset?=?0;?????%?Default?frequency?location
prach.PreambleIdx?=?[];???%?Not?required?as?no?preamble?is?sent
x=LtePRACHDims(ueprach);
nSamples=x.SamplingRate*x.TotSubframes*0.001;
falseCount=0;
for?nsf=1:10
????v?=?complex(randn(nSamples1)randn(nSamples1));???????
????detected=LtePRACHDetect(ueprachv[0:63]);????
????if?(length(detected)>0)
????falseCount=falseCount+1;
????end
end
????
?????P?=?falseCount/NSubframes;
?????disp(sprintf(‘False?alarm?probability:?%0.4f%%‘P*100));
?
????%?To?set?the?warning?for?p-files?in?‘default‘?state
????warning(‘on‘?‘MATLAB:oldPfileVersion‘);
%False?alarm?probability:?0.0000?%
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4810??2012-10-19?17:51??PRACHDetection.m
?????文件???????1165??2012-10-19?14:36??PRACH.m
-----------?---------??----------?-----??----
?????????????????5975????????????????????2
- 上一篇:51個城市的TSP問題
- 下一篇:GUI界面設計并附有案例
評論
共有 條評論