MATLAB2
MATLAB2
clear all
format long
disp(�design rectangular microstrip antenna by transmission line model using
matlab�)
disp(�==========================================================�)
er=input(�enter the dielectric constant:�);
h=input(�enter the substrate thickness (in mm):�);
f=input(�enter the frequency (GHz):�);
z=input(�enter the input impedence(ohm):�);
disp(�calculating. Please wait.�);
f=f*1e9
%calculate the width
Wid=(3e8/(sqrt((er+1)/2)*2*f))*1000; %in mm
1a=(3e8/f)*1000;
k=(2*pi)/la;
x+k*(wid);
i1=-2+cos(x)+(x*sinint(x))+(sin(x)/x);
g1=i1/(120*pi*pi); %in
r_in=1/(2*(g1+g12)); %in ohms
inset=(L/pi)*(acos(sqrt(z/r_in))); %in mm
disp(�RECTANGULAR PATCH�)
disp([�The width of the patch (Wp) is:�,num2str(wid),�mm�])
disp([�The length of the patch (Lp) is:�,num2str(L),�mm�])
disp([�The inset feed patch (Fi) is:�,num2str(inset),�mm�])
disp([�The width of the feed line (wf) is:�,num2str(W),�mm�])
disp([�The gap of the feed line (Gpf) is:�,num2str(g),�mm�])
disp([�The minimum length of ground plane is:�,num2str(Lg_min),�mm�])
disp([�The minimum width of ground plane is:�,num2str(Wg_min),�mm�])