ms_interleaver_initialization.m
来自「利用matlab/simulink仿真了CDMA2」· M 代码 · 共 91 行
M
91 行
%MS_Interleaver_Initialization.m
switch xRC
case 3
switch xFrameLength
case 6120
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=12288;
case 3048
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=12288;
case 1512
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=6144;
case 744
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=3072;
case 360
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=1536;
case 172
xRepetitionCount=2;
xPunctureVector=[1];
xInterleaverSize=1536;
case 80
xRepetitionCount=4;
xPunctureVector=[1];
xInterleaverSize=1536;
case 40
xRepetitionCount=8;
xPunctureVector=[1 1 1 1 1 1 1 1 0];
xInterleaverSize=1536;
case 16
xRepetitionCount=16;
xPunctureVector=[1 1 1 1 0];
xInterleaverSize=1536;
case 24
xRepetitionCount=2;
xPunctureVector=[1];
xInterleaverSize=384;
otherwise
error('Error:Invalid Frame Length for Radio Configuration 3 in cdma 2000 Mobile Station block<Interleaver>');
end
case 4
switch xFrameLength
case 4584
xRepetitionCount=1;
xPunctureVector=[1 1 0 1 1 0 0 1 1 0 1 1];
xInterleaverSize=12288;
case 2280
xRepetitionCount=1;
xPunctureVector=[1 1 0 1 1 0 0 1 1 0 1 1];
xInterleaverSize=6144;
case 1128
xRepetitionCount=1;
xPunctureVector=[1 1 0 1 1 0 0 1 1 0 1 1];
xInterleaverSize=3072;
case 552
xRepetitionCount=1;
xPunctureVector=[1 1 0 1 1 0 0 1 1 0 1 1];
xInterleaverSize=1536;
case 267
xRepetitionCount=2;
xPunctureVector=[1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0];
xInterleaverSize=1536;
case 125
xRepetitionCount=4;
xPunctureVector=[1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0];
xInterleaverSize=1536;
case 55
xRepetitionCount=8;
xPunctureVector=[1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0];
xInterleaverSize=1536;
case 21
xRepetitionCount=16;
xPunctureVector=[1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0];
xInterleaverSize=1536;
case 24
xRepetitionCount=2;
xPunctureVector=[1];
xInterleaverSize=384;
otherwise
error('Error:Invalid Frame Length for Radio Configuration 4 in cdma 2000 Mobile Station block<Interleaver>');
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?