You are on page 1of 1

clc;

clear all;
close all;
N=4;
f = ;
l = (3*10e8)/f;
d = *l;
k = (2*pi)/l;
theta_zero=90;
for theta = 1:1:360
d2r(theta) = (theta*pi)/180;
psi = ((k*d*cos(d2r(theta))));
z1=(N/2)*(psi);
z2=(1/2)*(psi);
g(theta) = sin(z1)./(N.*sin(z2));
g(theta) = abs(g(theta));
f(theta) = 2*cos((psi*N/2)+(pi));
f(theta) = abs(f(theta));
F(theta) = abs(g(theta)*f(theta));
end
figure(1)
polar(d2r,g)
figure(2)
polar(d2r,f)
figure(3)
polar(d2r,F)

You might also like