You are on page 1of 1

function[]=horn;disp('E-Plane and H-Plane Horn Specifications');%R1=[]; R2=[];%R1 =

input('rho1(in wavelengths) = ');%R2 = input('rho2(in wavelengths) = '); R1=6;


R2=6;a=0.5; b=0.25; a1=5.5; b1=2.75;%a=[]; b=[];%a = input('a(in wavelengths) = ');
%b = input('b(in wavelengths) = ');%a1=[]; b1=[];%a1 = input('a1(in wavelengths) =
');%b1 = input('b1(in wavelengths) = ');u = (1/sqrt(2))*((sqrt(R2)/a1)+
(a1/sqrt(R2)));v = (1/sqrt(2))*((sqrt(R2)/a1)-(a1/sqrt(R2)));u = Fresnel(u);v =
Fresnel(v);w = Fresnel(b1/sqrt(2*R1));DH = 4*pi*b*R2/a1*((real(u)-real(v))^2 +
(imag(u)-imag(v))^2);DE = 64*a*R1/(pi*b1)*((real(w))^2 + (imag(w))^2);DP = pi/
(32*a*b)*DE*DH;k = 2*pi;Emax = 0;Hmax = 0;% E and H plane Outputs% E-Plane
Amplitudefor(theta = 0:0.5:360);I = theta*2 + 1;theta = theta*pi/180;phi = pi/2;ky
= k*sin(theta);kxp = pi/a1;kxdp = -pi/a1;t1 = sqrt(1/(pi*k*R1))*(-k*b1/2-ky*R1);t2
= sqrt(1/(pi*k*R1))*(k*b1/2-ky*R1);t1p = sqrt(1/(pi*k*R2))*(-k*a1/2-pi/a1*R2);t2p =
sqrt(1/(pi*k*R2))*(k*a1/2-pi/a1*R2);t1dp = -t2p;t2dp = -t1p;I1
=.5*sqrt(pi*R2/k)*(exp(j*R2/(2*k)*kxp^2)*(Fresnel(t2p)-Fresnel(t1p)) +exp(j*R2/
(2*k)*kxdp^2)*(Fresnel(t2dp) - Fresnel(t1dp)));I2 = sqrt(pi*R1/k) * exp(j*R1/
(2*k)*ky^2) * (Fresnel(t2) - Fresnel(t1));y(I) = (1 + cos(theta))*I1*I2;y(I) =
abs(y(I));end for(I = 1:721)

You might also like