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!