ms_encoder_initialization.m

来自「cdma2000的matlab平台仿真」· M 代码 · 共 70 行

M
70
字号
% ms_encoder_initialization ;
switch xrc
    case 3
        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('Conv encoder 的RC3配置帧长度不可用');
        end
    case 4
        switch xframelength
            case 4584
                xtrellisstructure=poly2trellis(9,[753 561])';
                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('Conv encoder 的RC4配置帧长度不可用');
        end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?