get_data_signal.m
来自「source Matlab traites the UWB」· M 代码 · 共 22 行
M
22 行
%%%function [rx_data, burst_start] ... = get_data_signal(PACKET_LENGTH, ... samples_per_burst, samples_per_symbol, burstlength, ... burst,ths,symbol_start,tx_bit)% Now we can create the actual data signal% fprintf('build the data signal, ');% Now take time-hopping into account and pulse position to obtain the index of% the position of the burstsburst_start = symbol_start + ... ths*samples_per_burst + tx_bit*(samples_per_symbol/2);signal_idx = repmat(burst_start,burstlength,1)+repmat((0:burstlength-1)',1,PACKET_LENGTH)+1;% Now the support of the signalrx_data = zeros(1,samples_per_symbol*PACKET_LENGTH);rx_data(reshape(signal_idx,1,PACKET_LENGTH*burstlength)) = burst;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?