%% Range of Transmitter In Heavy Rain
% Specify transmitter and 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 range of transmitter using the rain propagation model and a path loss of 127 dB.

r = range(pm,tx,127)

% Copyright 2012 The MathWorks, Inc.