You are on page 1of 4

1.4.

8 Matlab coding for all parameter


clear all;
close all;
co=3.10^8;
m=input('enter the model nomber of field=');
n=input('enter the model nomber of field=');
W=input('enter the width of patch in milimeter=');
L=input('enter the length of patch in milimeter=');
eps_o=input('enter the relative permitivity of air=');
Tgq=in. clear all;
put('enter the dielectric loss tangent to the substrate=');
do=input('enter the close all;
diameter of the probe in milimeter=');
F_p=input('enter the frequency of the patch in Ghz=');
Xo=input('enter the feed point along the length of probe in milimeter=');
eps_xyi=0;
Yn=2;
Ym=1;
eps_xxi=input('enter the permitivity of dielectric of layers');
eps_yyi=input('enter the permitivity of dielectric of layers');
h_i=input ('enter the hight of the dielectric in milimeter');
i=input('enter the number of dielectric laers'
N=0.667*log(W/h_i+1.444);
A=eps_eq+1/2;
B=eps_eq-1/2;
C=(1+10./(W/h_eq)^-0.5);
D=1.451+log(W/2*h_eq+0.94);
E=W/2*h_eq+0.441+0.082*(eps_eq-1./eps_eq^2);
F=eps_eq+1/2*pi*eps_eq;
eps_f=A+(B.*C);
Z_a=60*pi./sqrt(eps_eq).*(E+F.*D)^-1;
W_eq=(120*pi*h_eq)/(Z_a*(eps_f^0.5));
L_eq=120*pi*h_eq/Z_a*sqrt(eps_f);
L_f=L+(W_eq-W/2).*((eps_f+0.3)/(eps_f-0.258));
W_f=W+(L_eq-L/2).*((eps_f+0.3)/(eps_f-0.258));
Z_W=377./sqrt(eps_f).*(P+N)^-1;
W_eq=(120*pi*h_eq)/(Z_a*(eps_f^0.5));
L_eq=120*pi*h_eq/Z_a*sqrt(eps_f);
C_sta1=0.5*L*(Z_W/co*Z_W^2-eps_o*eps_eq*W/h_eq);
C_sta2=0.5*W*(Z_W/co*Z_W^2-eps_o*eps_eq*L/h_eq);
C_dyn1=C_sta1/Yn*Ym;
C_dyn2=C_sta2/Yn*Ym;
Co_dyn=eps_o*eps_eq*W*L/Yn*Ym;
C_dyn=Co_dyn+2*C_dyn1+2*C_dyn2;
Z_o=377./(P+N)^-1;
C_sta1o=0.5*L*Z_o/(co*Z_o^2-eps_o*W)/h_eq;
C_sta2o=0.5*W*Z_o/(co*Z_o^2-eps_o*L)/h_eq;
C_dyno1=C_sta1o/Yn*Ym;
C_dyno2=C_sta2o/Yn*Ym;
C_dyno=Co_dyn+2*C_dyno1+2*C_dyno2;
eps_dyn=C_dyn/C_dyno;
f_r=(co./(2*sqrt(eps_dyn))).*sqrt((m/W_f)^2+(n/L_f)^2);
S=W/2*h_eq+0.441;
U=1.451+log(W/2*h_eq+0.94);
Z_ao=60*pi*(S+1/pi.*U)^-1;
K=log(2*pi*2.37*W/2*h_eq+ 0.94);
V=W/h_eq+W/(pi*h_eq)/(W/2*h_eq+0.9
Qr=co*sqrt(eps_dyn)/4*f_r*h_eq;
QT=1./Qr+1./Qc+1./Qd^-1;
a1=F_p/f_r-f_r/F_p;
b2=log(co./(pi*F_p*do*sqrt(eps_eq)));
M1=pi*f_r*eps_dyn*eps_o*L*W;
M2=pi*Xo/L;
R=QT*h_eq/M1*(cos(pi*(Xo/L))^2);
X_L=377*F_p*h_eq/co*b2;
Z_f=R/(1+QT^2*a1)+i*(X_L-(R*QT*a1))/(1+(QT*a1)^2);

1.4.9 Result
The model has accuracy better than, 1.5% for both the resonance and resonant resistance as
compared against the result of the method of moment and experimental

Fig (1)
fig(2)
fig(3)

You might also like