cp0803_pamcorrmask_r.m

来自「《超宽带无线电基础》配套程序」· M 代码 · 共 34 行

M
34
字号
%
% FUNCTION 8.13 : "cp0803_PAMcorrmask_R"
%
% Evaluates the correlation mask ('mask') for a RAKE
% receiver 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 in Hertz
% 'numpulses' is the number of transmitted pulses
% 'rake' represents the estimated discrete-type impulse
%      response
%
% Programmed by Guerino Giancola
%

function [mask] = ...
   cp0803_PAMcorrmask_R(ref,fc,numpulses,rake)

% ---------------------------------------------
% Step One - Evaluation of the correlation mask
% ---------------------------------------------

dt = 1 / fc;
LR = length(ref);

% Energy normalization
Epulse = (sum((ref.^2).*dt))/numpulses;
nref = ref./sqrt(Epulse);

% Rake convolution

mref = conv(nref,rake);
mref = mref(1:LR);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?