How can i avoid the error coming when I am making some elements dead in an array in antenna toolbox in Matlab R2015a.???
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Vishwanath Iyer
el 13 de Nov. de 2015
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 comentarios
Ver también
Categorías
Más información sobre Array Catalog en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!