?? gendata.m
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -