radiation pattern generation for 10 element array of point sources using electric field quation

3 views (last 30 days)
please help in pattern generation for the given equation
i am attaching the file for the equation to be implemented and am pasting the code here which i have written. please correct my code i am not getting correct SLL for amplitude distribution. i am waiting from 2 months for this please help. please comment even if this code is correct for the given equation.
clc
clear
th=-90:0.01:90
u=sin(th)
N=10
E=0
for n=1:N
E1=0;
A=[-1 -2 -3 -4 -5 5 4 3 2 1]
for x=-1:0.01:1
E1=E1+(A(n)*exp(1j*pi*10*u.*x));
end
E=E+E1
end
M=max(E);
Y=abs(E);
E=Y./M;
Edb=20*log10(E);
plot(u,Edb)

Answers (0)

Community Treasure Hunt

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

Start Hunting!