%% Path Loss of Receiver In Heavy Rain
% Specify the transmitter and the receiver sites.

tx = txsite('Name','MathWorks Apple Hill',...
       'Latitude',42.3001, ...
       'Longitude',-71.3504, ...
       'TransmitterFrequency', 2.5e9);
 
rx = rxsite('Name','Fenway Park',...
       'Latitude',42.3467, ...
       'Longitude',-71.0972);

%
% Create the propagation model for heavy rainfall rate.

pm = propagationModel('rain','RainRate',50)

%
% Calculate the pathloss at the receiver using the rain propagation model.

pl = pathloss(pm,rx,tx)

% Copyright 2012 The MathWorks, Inc.