pdcch_cce.m
来自「尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码。」· M 代码 · 共 40 行
M
40 行
% N_RB is the number of resource block on the downlink transmission
% n_PHICH is the number of REG used for the transmission of PHICH.
% N_symb is the number of OFDM symbols used for transmission of PDCCHs in a subframe.
% N_CCE is the number of CCE about PDCCH.
% N_REG is the number of REG about PDCCH.
function [N_REG,N_CCE] = PDCCH_CCE(N_RB,n_PHICH,N_symb,p )
switch N_symb %OFDM符号
case 1
N_REG = N_RB * 2 - n_PHICH - 4;%每个RB中有2个或3个REG;4是指用来传PCFICH的REG数;
N_CCE = floor(N_REG/9);
case 2
if P == 4
N_REG = N_RB * (2+2) - n_PHICH - 4;
N_CCE = floor(N_REG/9);
else
N_REG = N_RB * (2+3) - n_PHICH - 4;
N_CCE = floor(N_REG/9);
end;
case 3
if P == 4
N_REG = N_RB * (2+2+3) - n_PHICH - 4;
N_CCE = floor(N_REG/9);
else
N_REG = N_RB * (2+3+3) - n_PHICH - 4;
N_CCE = floor(N_REG/9);
end;
case 4
if P == 4
N_REG = N_RB * (2+2+3+3) - n_PHICH - 4;
N_CCE = floor(N_REG/9);
else
N_REG = N_RB * (2+3+3+3) - n_PHICH - 4;
N_CCE = floor(N_REG/9);
end;
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?