clc;
clear all;
close all;
lam=1/2;
n=6;%no of antennas in the array
d1=0.75;%distance from the question
d=d1*lam;
alpha=('Enter the value of phase difference=');
phi=0:0.01:2*pi;
%psi=(2*pi/lam)*d*cos(phi)-(2*pi/lam)*d; % end fire array
psi=(2*pi/lam)*d*cos(phi); % broadside array
num=sin(n*psi/2);
den=sin(psi/2);
E=abs(num./den);
deg=phi*180/pi;
subplot(1,2,1);
polar(phi,E);
subplot(1,2,2);
plot(deg,E);
% ? means , i have understood that we need to take input so ,have considered and has simulated the output, hope that you ask the doubt in case if you have any other clarification regarding simulated pattern file or any MATLAB code.
Get Answers For Free
Most questions answered within 1 hours.