cp0801_ppmcorrmask.m
来自「cp0801_PPMcorrmask为PPM-TH-UWB信号的相关模板信号计算」· M 代码 · 共 24 行
M
24 行
%
%FUNCTION 8.4 :"cp0801_PPMcorrmask"
%
% Evaluates the correlation mask of the case of binary PPM UWB signals
% 'ref' is the reference signal (with no modulation) that 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
%
function [mask]=cp0801_PPMcorrmask(ref,fc,numpulses,dPPM)
%--------------------------------------------------------
% Step One - Evaluation of the correlation mask
%--------------------------------------------------------
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 + -
显示快捷键?