Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to write this equation in matlab ?? Please help
2 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Javier Bastante
2016-3-16
Once defined N,A,kr1,theta,fi1,FI,B,kr2 and fi2, run this code:
AF=0;
for n=1:N;
AF=AF+(A(n)*exp(j*kr1*sin(theta)*(cos(fi1(n))*cos(FI)+sin(fi1(n))*sin(FI)))+B(n)*exp(j*kr2*sin(theta)*(cos(fi2(n))*cos(FI)+sin(fi2(n))*sin(FI))));
end;
AF
Hope it works. Regards
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!