• 大小: 67KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-15
  • 语言: 其他
  • 标签: matlab  uwb  system  

资源简介

文件包含uwb信道模型的仿真,对PPM-TH信号通过UWB信号后的信号进行接收,并重建,得到信道的 冲击响应。

资源截图

代码片段和文件信息

%
% FUNCTION 2.4 : “cp0201_2PPM_TH“
%
% Introduces the TH code given by ‘THcode‘
% and implements binary PPM modulation
% ‘seq‘ is the input binary stream
% ‘fc‘ is the sampling frequency for the generated signal
% ‘Tc‘ is the chip time
% ‘Ts‘ is the average pulse repetition time
% ‘dPPM‘ is the PPM delta shift
% ‘THcode‘ is the TH code
%
% The function generates two output streams  
% ‘2PPMTHseq‘ is the output with both TH and 2PPM
% ‘THseq‘ is the output with TH only
%
% Programmed by Guerino Giancola
%

function [PPMTHseqTHseq] = ...
  cp0201_2PPM_TH(seqfcTcTsdPPMTHcode)


% --------------------------------------------------
% Step One - Implementation of the 2PPM-TH modulator
% --------------------------------------------------

dt = 1 ./ fc;                   % sampling period
framesamples = floor(Ts./dt);   % no. of samples between
                                % pulses
chipsamples = floor (Tc./dt);   % no. of samples for the
                                % chip duration
PPMsamples = floor (dPPM./dt);  % no. of samples for the
                                % PPM shift

THp = length(THcode);           % TH-code periodicity

totlength = framesamples*length(seq);
PPMTHseq=zeros(1totlength);
THseq=zeros(1totlength);

% ------------------------------------------------
% Step Two - Main loop for introducing TH and 2PPM
% ------------------------------------------------

for k = 1 : length(seq)
    
    % uniform pulse position
    index = 1 + (k-1)*framesamples;
    
    % introduction of TH
    kTH = THcode(1+mod(k-1THp));
    index = index + kTH*chipsamples;
    
    THseq(index) = 1;
    
    % introduction of 2PPM
    index = index + PPMsamples*seq(k);
    PPMTHseq(index) = 1;
        
end % for k = 1 : length(seq)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1825  2004-07-22 12:12  UWB_system\cp0201_2PPM_TH.m

     文件        410  2004-07-22 12:12  UWB_system\cp0201_bits.m

     文件        643  2004-07-22 12:12  UWB_system\cp0201_repcode.m

     文件        354  2004-07-22 12:12  UWB_system\cp0201_TH.m

     文件       3083  2009-05-08 03:36  UWB_system\cp0201_transmitter_2PPM_TH.m

     文件       1410  2004-07-22 12:12  UWB_system\cp0201_waveform.m

     文件       1270  2004-07-22 12:13  UWB_system\cp0801_Gnoise2.m

     文件        581  2004-07-22 12:13  UWB_system\cp0801_pathloss.m

     文件       3335  2009-05-09 00:01  UWB_system\cp0801_PPMreceiver.m

     文件       4517  2009-05-08 03:55  UWB_system\cp0802_IEEEuwb.m

     文件       1114  2004-07-22 12:13  UWB_system\cp0803_PPMcorrmask_R.m

     文件       2969  2004-07-22 12:14  UWB_system\cp0803_rakeselector.m

     文件     705654  2009-05-08 23:50  UWB_system\final result.bmp

     文件       1994  2009-05-08 23:47  UWB_system\final result.fig

     文件       2631  2009-05-11 14:09  UWB_system\UWB_system.m

     文件     705654  2009-05-08 20:33  UWB_system\信道冲激响应.bmp

     文件     705654  2009-05-08 20:32  UWB_system\离散时间冲激响应.bmp

     文件         56  2009-05-09 00:17  UWB_system\说明.txt

     文件    2949174  2009-05-08 23:50  UWB_system\运行图.bmp

     文件         61  2009-05-09 00:13  UWB_system\运行时间.txt

     目录          0  2014-11-27 09:22  UWB_system

----------- ---------  ---------- -----  ----

              5092389                    21


评论

共有 条评论