How to calculate array factor in matlab

6 次查看(过去 30 天)
I m trying to write matlab code for this expression.
Can anyone help me with this?
Thanks!!!!
  11 个评论
Rik
Rik 2021-12-23
You could also calculate alpha in your loop:
s=0;
for m=1:M
for n=1:N(m)
alpha=-K*r(m)*cos(phi0-phi(m,n));
tmp=K * r(m) * sin(theta) * cos(phi0-phi(m,n)) + alpha;
s=s + W(m) * exp(1j*tmp);
end
end

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by