ms_fqi_initialization.m
来自「运用MATLAB实验环境设计了一个CDMA2000基站发射机的模拟」· M 代码 · 共 39 行
M
39 行
% MS_FQL_Initialization.m
xPaddedFrameLength=xFrameLength;
switch xRC
case 3
switch xFrameLength
case {16,40}
xGenPoly=[6 2 1 0];
case 80
xGenPoly=[8 7 4 3 1 0];
case 172
xGenPoly=[12 11 10 9 8 4 1 0];
case {24,360,744,1512,3048,6120}
xGenPoly=[16 15 14 11 6 5 2 1 0];
otherwise
error('Error:Invalid Frame Length for Radio Configuration 3 in cdma 2000 Mobile Station block<Frame Quality Indicator>');
end
case 4
switch xFrameLength
case 21
xPaddedFrameLength=22;
xGenPoly=[6 2 1 0];
case 55
xPaddedFrameLength=56;
xGenPoly=[8 7 4 3 1 0];
case 125
xPaddedFrameLength=126;
xGenPoly=[10 9 8 7 6 4 3 0];
case 267
xPaddedFrameLength=268;
xGenPoly=[12 11 10 9 8 4 1 0];
case {24,552,1128,2280,4584}
xGenPoly=[16 15 14 11 6 5 2 1 0];
otherwise
error('Error:Invalid Frame Length for Radio Configuration 4 in cdma 2000 Mobile Station block<Frame Quality Indicator>');
end
otherwise
error('Error:Invalid or Unhandled Radio Configuration in cdma 2000 Mobile Station block<Frame Quality Indicator>');
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?