gendata.m

来自「这是一个速率为2的mimo系统」· M 代码 · 共 28 行

M
28
字号
function gendata(permutation,sympf,qam)
% Generate original modulation data

%sympf=36;
%qam=16;
% generate raw constellation data for one frame
switch permutation,
    case 'DL_PUSC', % cluster structure
        orig_DPUSC=floor(qam*rand(sympf,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,1702));
        switch qam,
            case 4,     % QPSK
                save orig_DFUSC_QPSK.mat orig_DFUSC;
            case 16,    % 16QAM
                save orig_DFUSC_QAM16.mat orig_DFUSC;
            case 64,    % 64QAM
                save orig_DFUSC_QAM64.mat orig_DFUSC;
            otherwise,
                error('Not Support Now!');
        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/3,420*8));
        save orig_UPUSC_QAM16.mat orig_UPUSC;
    otherwise,
        error('Not supported permutation!');
end

⌨️ 快捷键说明

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