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

📄 ms_interleaver_initialization.m

📁 利用matlab/simulink仿真了CDMA2
💻 M
字号:
%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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -