how to design a microstrip patch antenna using matlab ?

c = 3*10^8;
m = 1;
n = 1;
pp = 1;
E = 12.8;
a = 10*10^-3:0.1*10^-3:30*10^-3;
b = 10*10^-3;
d = 10*10^-3;
f = zeros(1,length(a));
for i=1:length(a)
f(i) = c/(2*pi)*sqrt(E)*sqrt(((m*pi)/a(i))^2+(n*pi/b)^2+(pp*pi/(2*d))^2);
end
a1 = 10*10^-3;
b1 = 10*10^-3:0.1*10^-3:30*10^-3;
d1 = 10*10^-3;
f1 = zeros(1,length(b1));
for k=1:length(b1)
f1(k) = c/(2*pi)*sqrt(E)*sqrt(((m*pi)/a1)^2+(n*pi/b1(k))^2+(pp*pi/(2*d1)^2));
end
a2 = 10*10^-3;
b2 = 10*10^-3;
d2 = 10*10^-3:0.1*10^-3:30*10^-3;
f2 = zeros(1,length(d2));
for t=1:length(d2)
f2(t) = c/(2*pi)*sqrt(E)*sqrt((m*pi)/a2)^2+(n*pi/b2)^2+(pp*pi/(2*d2(t)^2));
end
subplot(3,1,1);plot(a,f);title('plot a vs f when a is varying');
subplot(3,1,2);plot(b1,f);title('plot b vs f when b is varying');
subplot(3,1,3);plot(d2,f);title('plot d vs f when d is varying');

1 commentaire

Hello Harshit!
What is the problem with this code, are you not able to get desired output? Kindly state your question properly.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Design, Analysis, Benchmarking, and Verification dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by