www.gusucode.com > phased 案例源码 matlab代码程序 > phased/SignalAttenuationDueToRainElevationExample.m

    %% Signal Attenuation Due to Rainfall as Function of Elevation Angle
% Compute the signal attenuation due to heavy rain as a function of
% elevation angle. Elevation angles vary from 0°–90°. Assume
% a path distance of 100 km and a signal frequency of 100 GHz.

%%
% Set the rain rate to 10 mm/hr.
rr = 10.0;

%%
% Set the elevation angles, frequency, range.
elev = [0:1:90];
freq = 100.0e9;
rng = 100000.0*ones(size(elev));

%%
% Compute and plot the loss.
L = rainpl(rng,freq,rr,elev);
plot(elev,L)
grid
xlabel('Path Elevation (degrees)')
ylabel('Attenuation (dB)')