?? msencoderinitialization.m
字號(hào):
%==========================================================================
% MS_Encoder_Initialization.m
%==========================================================================
%根據(jù)無(wú)線配置設(shè)置卷積編碼器Tellis參數(shù)和填充長(zhǎng)度
%只支持RC3和RC4
switch xRC
case 3
%根據(jù)輸入數(shù)據(jù)幀的長(zhǎng)度設(shè)置卷積編碼器Tellis參數(shù)和填充長(zhǎng)度
switch xFrameLength
case 6120
xTrellisStructure=poly2trellis(9,[753 561]);
xPaddedFrameLength=6144;
case 3048
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=3072;
case 1512
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=1536;
case 744
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=768;
case 360
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=384;
case 172
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=192;
case 80
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=96;
case 40
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=54;
case 16
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=30;
case 24
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=48;
otherwise
error('Error:Invalid Frame Length for RC3 in cdma2000 Mobile Station block<Convolutional Encoder>');
end
case 4
%根據(jù)輸入數(shù)據(jù)幀的長(zhǎng)度設(shè)置卷積編碼器Tellis參數(shù)和填充長(zhǎng)度
switch xFrameLength
case 4584
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=4608;
case 2280
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=2304;
case 1128
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=1152;
case 552
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=576;
case 267
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=288;
case 125
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=144;
case 55
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=72;
case 21
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=36;
case 24
xTrellisStructure=poly2trellis(9,[765 671 513 473]);
xPaddedFrameLength=48;
otherwise
error('Error:Invalid Frame Length for RC3 in cdma2000 Mobile Station block<Convolutional Encoder>');
end
end
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -