⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ms_encoder_initialization.m

📁 CDMA通过MAtlab仿真的各个模块源程序
💻 M
字号:
% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -