?? cp0801_pathloss.m
字號:
%
% 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
% -------------------------------
attn = (c0/sqrt(d^gamma));
rx = attn .* tx;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -