本期给大家带来5G NR中已知GSCN如何计算SSB的中心频率,用MATLAB实现,参考3GPP 38.104
下图是GSCN与SSB中心频率换算关系。
函数说明:
函数的入参是GSCN号
函数的输出是对应的SSB中心频率,单位MHZ
function freqency = nr_5g_gscn2freq(gscn)
%
%
%
%author:老牛
% coding time 2024.10.23
% out freq unit MHZ
% refer to 3gpp TS 38.104
N = 0;
M = 0;
find_M = 0;
if gscn>=2 && gscn <= 7498 %0-3000MHZ
for m = 1:2:5
if mod(gscn - ((m-3)/2),3) == 0
N = (gscn - ((m-3)/2))/3;
M = m;
find_M = 1;
break;
end
end
if find_M
freqency = (N * 1200 + M * 50)*1e3;
else
freqency = 0;
end
freqency = freqency/1e6;
elseif gscn>=7499 && gscn <= 22255 %3000MHZ - 24250MHZ
N = gscn - 7499;
freqency = 3000 + N * 1.44;
elseif gscn>=22256 && gscn <= 26639 %3000MHZ - 24250MHZ
N = gscn - 22256;
freqency = 24250.08 + N * 17.28;
else
freqency = 0;
fprintf('error gscn %d\n',gscn);
end
标签:end,MATLAB,gscn,GSCN,5G,SSB,find,freqency From: https://blog.csdn.net/dyliang77/article/details/143186146