cp0801_pathloss.asv
来自「uwb中无多径awgn信道接收机的调制与相关掩模的仿真」· ASV 代码 · 共 26 行
ASV
26 行
%
% FUNCTION 8.1 : "cp0801_pathloss"
%
% Attenuates the input signal 'tx' according to
% the distance 'd' [m], the decaying factor 'gamma'
% and the constant term 'c0', which represents the
% reference attenuation at 1 meter.
%
% The function returns the attenuated signal 'rx'
% and the value of the channel gain 'attn'
%
% Programmed by Guerino Giancola
%
function [rx,attn] = cp0801_pathloss(tx,c0,d,gamma)
% -------------------------------
% Step One - Path loss evaluation
% -------------------------------
tx=1;
c0=10^(-47/20);
d=2;
gamma=1.7;
attn = (c0/sqrt(d^gamma));
rx = attn .* tx;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?