cp0801_pamcorrmask.m
来自「uwb中无多径awgn信道接收机的调制与相关掩模的仿真」· M 代码 · 共 28 行
M
28 行
%
% FUNCTION 8.6 : "cp0801_PAMcorrmask"
%
% Evaluates the correlation mask ('mask') for
% receiving 2PAM UWB signals.
% 'ref' is the reference signal (with no modulation)
% which is produced by the 2PAM+DS transmitter
% 'fc' is the sampling frequency
% 'numpulses' is the number of transmitted pulses
%
% Programmed by Guerino Giancola
%
function [mask] = cp0801_PAMcorrmask(ref,fc,numpulses)
% ---------------------------------------------
% Step One - Evaluation of the correlation mask
% ---------------------------------------------
dt = 1 / fc;
% Energy normalization
Epulse = (sum((ref.^2).*dt))/numpulses;
ref = ref./sqrt(Epulse);
% Mask construction
mask = ref;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?