How can i avoid the error coming when I am making some elements dead in an array in antenna toolbox in Matlab R2015a.???
1 次查看(过去 30 天)
显示 更早的评论
I am using antenna toolbox to design a rectangular array. when I am going to make some element dead by making their feed to zero, an error comes as following. so please help me to avoid that error.
Code:
%%%J.M.T.&.M.+.MAA
clc
clear all
close all
d = dipole;
N = 5;
df = repmat(d,N)
r = rectangularArray('Element',df);
show(r)
S = [1:2:N*N];
for i = 1:25
if any(S==i)
r.Element(i).Tilt = 90;
r.Element(i).TiltAxis = [0 1 0];
end
end
figure;
show(r)
figure;
pattern(r,75e6)
Vfeed = ones(1,N*N)
Vfeed(S) = 0
r.AmplitudeTaper = Vfeed
figure
pattern(r,75e6)
Error:
Error using em.Array/set.AmplitudeTaper (line 125)
Expected input to be positive.
Error in paa_test4 (line 23)
r.AmplitudeTaper = Vfeed
0 个评论
回答(1 个)
Vishwanath Iyer
2015-11-13
Hello Guruprasad,
In the R2015a release of Antenna Toolbox, it is not possible to set the AmplitudeTaper to zero. In the R2015b release however, this is possible.
As a workaround, try setting it to a really small value, e.g. 1e-16. So the following line would be: Vfeed(S) = 1e-16
Hope this helps.
Regards,
Vishwanath
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Array Catalog 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!