%Rain rate (mm/hr)- avg over 5 minutes r5=10; %a,b coeffs for specific attenuation a=1.01; b=1.01; %elevation angle (Deg) theta=10; %Ground terminal ht above sea level (Km) g=0; atheta=a*r5^b*2636/(r5-6.2+2636*sin(theta*pi/180)/(4-g)); attenuation=atheta