📄 construct_sim.m
字号:
function sim=construct_sim;
%create an empty structure for simulations.
sim = struct('sampling_rate', 0, ...
'carrier_freq', 0, ...
'symbol_rate', 0, ...
'bandwidth', 0, ...
'packet_type', '', ... %default='sc/cont/none'. 'ofdm/sc_nude/ofdm_nude/preamble
'packet_time', 0, ... %if 0, need calculation;
'blank_time', 0, ... %if 0, then no quiesence period.
'lfm_type', '', ... %default='none', 'lfmxxx/lfm_dopplerxxx.
'lfm_time', 0, ...
'preamble_type', '', ... %default='none', 'mseq/zac_mseq
'preamble_time', 0, ...
'frame_time', 0, ... %if 0, need calculation.
'frame_num', 0, ... %if 0, need calculation.
'prefix_type', '',... %default='none'. 'meq/zac_mseq
'prefix_time', 0, ...
'appendix_type', '',... %default='none'. 'meq/zac_mseq/prefix
'appendix_time', 0, ...
'frame_data_time', 0,... %if 0, calculation
'frame_data_len', 0,... %need calculation at all times.
'coding_type', '', ... %default='none'. 802_15_3_tcm/802_16_ctc_arp/802_16_ctc_random
'coding_rate', 0,... %overal rate of the code
'n_k', 0, ... %[n k] value of trellis
'coding_reg_num', 0, ... %the number of registers in trellis codes
'interleaver', '', ... %default='none'. 'random.
'interleaver_val', 0,...
'mapping_type', '', ... %default='none';
'mapping_rate', 0, ...
'mapping_msb', '',... %default='msb_first'. 'lsb_first
'tx_num', 0, ... %number of transmitter
'multiplex_type', '', ... %default='no_multiplex'.
'multiplex_outvec', 0, ... %the output pins of the multiplexor
'space_time_code', '',... %default='none'. 'Alamouti/complex orthogonal(co2)/co3/co4/etc...
'stc_rate', 0,... %if tx_num=1, no meaning.
'pulse_shaping_type', '', ... %default='rect'. 'sqrt/normal/etc..;
'ps_alpha', 0, ...
'ps_grp_delay', 0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -