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

    %% Signal Attenuation Due to Rainfall as Function of Frequency
% Plot the signal attenuation due to moderate rainfall for signals in the
% frequency range 1–1000 GHz. The path distance is 10 km.

%%
% Set the rain rate value for moderate rainfall to 3 mm/hr.
rr = 3.0;
freq = [1:1000]*1e9;
L = rainpl(10000,freq,rr);
loglog(freq/1e9,L)
grid
xlabel('Frequency (GHz)')
ylabel('Attenuation (dB)')