Create Antenna array which is non-uniformly excited. Plot Radiation pattern, FFT

3 views (last 30 days)
Problem statement: Create array A=> 13 elements, 'd1' spacing Create array B=> 9 elements, 'd2' spacing
Array Factor to be calculated for: (excitation) 1) Cosine Distribution 2) Cosine squares distribution 3) uniform distribution 4) Cosine over pedestal distribution
Find: Individual array pattern of Array A and Array B. Find multiplication of Array factor of A and B
Only able to do uniform distrubution. Difficulty understanding how current distribution values can be added in array factor formula in matlab.
Do not have antenna/ Phased array toolbox
Code so far:
if true
for nn1=1:13
x1=(2.*nn1) +1;
y1(nn1)=(cos(((pi.*x1)./2))).^2;
%%end
for nn2=1:9 x2=(2.*nn2) +2; y2(nn2)=(cos(((pi.*x2)./2))).^2; %%end w=conv(y1,y2,'full');
% element spacing d = 0.5;
% 90 degree for braodside, 0 degree for endfire. theta_zero = 90;
An = w; j = sqrt(-1); AF = zeros(1,360);
for theta=1:360
% change degree to radian
deg2rad(theta) = (theta*pi)/180;
%array factor calculation
for n=1:21
AF(theta) = AF(theta) + (An(n)).*exp(j.*n.*2.*pi.*d.*(cos(deg2rad(theta))-cos(theta_zero.*pi/180))) ;
% % end
AF(theta) = abs(AF(theta));
%%end
% plot the array factor polar(deg2rad,AF);
t=0:0.01:2*pi; figure plot(t,(20.*log(AF))
end

Answers (0)

Community Treasure Hunt

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

Start Hunting!