📄 gendata_2tx_sm.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -