gendata_2tx_sm.m

来自「该文件夹为空间复用空时码的仿真程序」· M 代码 · 共 28 行

M
28
字号
function gendata_2Tx_SM(permutation,sympf_2Tx,qam)
% Generate original modulation data for 2 Antennas Spatial Multiplex

%sympf_2Tx=6*2;
%qam=16;
% generate raw constellation data for one frame
switch permutation,
    case 'DL_PUSC', % cluster structure
        orig_DPUSC=floor(qam*rand(sympf_2Tx,120*12));
        save orig_DPUSC_QAM16.mat orig_DPUSC;
    case 'DL_FUSC', % Full used, Note: Not use Variable/Constant pilot set here!
        orig_DFUSC=floor(qam*rand(sympf_2Tx,1702));
        switch qam,
            case 4,
                save orig_DFUSC_QPSK.mat orig_DFUSC;
            case 16,
                save orig_DFUSC_QAM16.mat orig_DFUSC;
            case 64,
                save orig_DFUSC_QAM64.mat orig_DFUSC;
            otherwise,
                error('Not supported Modulation Schme!');
        end
    case 'UL_PUSC', % tile structure, Note: tile expand 3 symbols, must allocate data for 3 symbols one time
        orig_UPUSC=floor(qam*rand(sympf_2Tx/3,420*8));
        save orig_UPUSC_QAM16.mat orig_UPUSC;
    otherwise,
        error('Not supported permutation!');
end

⌨️ 快捷键说明

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