cp0801_ppmcorrmask.m
来自「uwb中无多径awgn信道接收机的调制与相关掩模的仿真」· M 代码 · 共 39 行
M
39 行
%
% FUNCTION 8.4 : "cp0801_PPMcorrmask"
%
% Evaluates the correlation mask ('mask') in the
% case of binary PPM UWB signals.
% 'ref' is the reference signal (with no modulation)
% which is produced by the 2PPM+TH transmitter
% 'fc' is the sampling frequency
% 'numpulses' is the number of transmitted pulses
% 'dPPM' is the value of the PPM shift
%
% Programmed by Guerino Giancola
%
function [mask] = cp0801_PPMcorrmask(ref,fc,numpulses,dPPM)
% ---------------------------------------------
% Step One - Evaluation of the correlation mask
% ---------------------------------------------
fc=50e9;
dPPM=0.5e-9;
Ts=3e-9;
numbit=10000;
numpulses1=1000;
dt = 1 / fc;
% Energy normalization
Epulse = (sum((ref.^2).*dt))/numpulses;
ref = ref./sqrt(Epulse);
% Mask construction
PPMsamples = floor (dPPM ./ dt);
sref(1:PPMsamples)=ref(length(ref)- ...
PPMsamples+1:length(ref));
sref(PPMsamples+1:length(ref)) = ref(1:length(ref)- ...
PPMsamples);
mask = ref-sref;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?