ms_orthogonalspreading_initialization.asv
来自「利用matlab/simulink仿真了CDMA2」· ASV 代码 · 共 71 行
ASV
71 行
%MS_OrthogonalSpreading_Initialization.m
switch xChannelType
case 1
%反向基本信道
xWalshCodeLength=16;
xWalshCodeIndex=4;
case 2
%反向补充信道1
xWalshCodeLength=2;
xWalshCodeIndex=1;
case 3
%反向补充信道2
xWalshCodeLength=4;
xWalshCodeIndex=2;
case 4
%反向专用控制信道
xWalshCodeLength=16;
xWalshCodeIndex=8;
case 5
%反向公共控制信道
xWalshCodeLength=8;
xWalshCodeIndex=2;
case 6
%反向导频信道
xWalshCodeLength=32;
xWalshCodeIndex=0;
case 7
%反向增强接入信道
xWalshCodeLength=8;
xWalshCodeIndex=2;
otherwise
error('Error:Invalid Channel Type for Radio Configuration 3 in cdma 2000 Mobile Station block<Spreading and Modulation>');
end
switch xRC
case 3
switch xFrameLength
case 6120
xRepetitionCount=fix((1228.8*xFrameDuration)/12288);
case 3048
xRepetitionCount=fix((1228.8*xFrameDuration)/12288);
case 1512
xRepetitionCount=fix((1228.8*xFrameDuration)/6144);
case 744
xRepetitionCount=fix((1228.8*xFrameDuration)/3072);
case 360
xRepetitionCount=fix((1228.8*xFrameDuration)/1536);
case 172
xRepetitionCount=fix((1228.8*xFrameDuration)/1536);
case 80
xRepetitionCount=fix((1228.8*xFrameDuration)/1536);
case 40
xRepetitionCount=fix((1228.8*xFrameDuration)/1536);
case 16
xRepetitionCount=fix((1228.8*xFrameDuration)/1536);
case 24
xRepetitionCount=fix((1228.8*xFrameDuration)/384);
otherwise
error('Error:Invalid frame Length for Radio Configuration 3 in cdma 2000 Mobile Station block<Spreading and Modulation>');
end
case 4
switch xFrameLength
case 4584
xRepetitionCount=fix((1228.8*xFrameDuration)/12288);
case 2280
xRepetitionCount=fix((1228.8*xFrameDuration)/6144);
case 1128
xRepetitionCount=fix((1228.8*xFrameDuration)/3072);
case 552
xRepetitionCount=fix((1228.8*xFrameDuration)/1536);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?