= sort(rxRSRPs(T,1:nDetected), 'descend') įprintf( ' NCellID: = RSRP: %7.2fdBm\n',cellIDs(idx(n)),rxRSRPs(T,idx(n))) Įnd % Select the cell with the highest RSRP.ĭetectedCells(T) = find(enb.NCellID=) įprintf( '\n Selected: Cell %d (NCellID=%d)\n',detectedCells(T),enb.NCellID) įinally, the results obtained through simulation are plotted. Rxgrid = lteOFDMDemodulate(enb,rxwaveform(1 offsets(n):end,:)) Reference Signal Received Power (RSRP) measurements are one of the supported positioning methods for 5G Orthogonal Frequency Division Multiplexing (OFDM) system. NSubframe is set to zero % because the timing offsets returned by lteCellSearch are relative to % the start of a frame. The assumption of CellRefP=1 % here means that the RS measurements will only be calculated for % cell-specific reference signal port 0. % The TDD uplink-downlink configuration and special subframe % configuration are assumed to be known. = lteCellSearch(enb,rxwaveform,searchalg) % NDLRB is only required so that lteCellSearch can infer the sampling % rate of 'rxwavefom' Noise = No*complex(randn(size(rxwaveform)),randn(size(rxwaveform))) Rsmeas2 = hRSMeasurements(cell2,rxgridcell2) įprintf( ' RSRP: %7.2fdBm %7.2fdBm\n',txRSRPs(T,1),txRSRPs(T,2)) Rxgridcell2 = lteOFDMDemodulate(cell2,txcell2) Rsmeas1 = hRSMeasurements(cell1,rxgridcell1) Rxgridcell1 = lteOFDMDemodulate(cell1,txcell1) % Perform Reference Signal (RS) measurements on the transmitted % signals. Rxwaveform = rxwaveform circshift(txcell2,delta_t) Txcell2 = lteRMCDLTool(cell2,randi(,1000,1)) ĭelta_t = round(info.SamplingRate*3e-6) % Time offset between cells % For each time period: for T = 1:nTimePeriodsįprintf( '\n%s\n Time period T%d\n%s\n\n',separator,T,separator) įprintf( ' NCellID: } }\n',cell1.NCellID,cell2.NCellID) RxRSRPs = -inf(nTimePeriods,searchalg.MaxCellCount)
0 Comments
Leave a Reply. |