Hi - I have an issue with trying to get the directivity response pattern for a custom phased array using the toolbox command set
My array has 8 rectangular loop elements positioned in a non-symmetrical layout around a circle in the X-Y plane
phased.ConformalArray works with no errors
viewArray works with no errors, showing the correct element configuration
plotResponse produces the following error dialogue :-
----------------------------------------------------------------------------------------------------------------------------------------------------------------
>> loop_array
Expected one output from a curly brace or dot indexing expression, but there were 8 results.
Error in em.EmStructures/saveobj
Error in phased.internal.AbstractHomogeneousArray/saveObjectImpl (line 98)
s.Element = saveobj(obj.Element);
Error in phased.ConformalArray/saveObjectImpl (line 360)
s = saveObjectImpl@phased.internal.AbstractHomogeneousArray(obj);
Error in matlab.System/saveobj
Error in matlab.System/cloneImpl
Error in phased.internal.AbstractHomogeneousArray/cloneSensor (line 240)
newObj = clone(obj);
Error in phased.internal.plotRadiationPattern (line 123)
temp = cloneSensor(H);
Error in phased.internal.AbstractArray/plotResponse (line 622)
phased.internal.plotRadiationPattern(...
Error in loop_array (line 58)
plotResponse(array,fc,c,'RespCut','3D','Unit','dBi','Format','polar');
----------------------------------------------------------------------------------------------------------------------------------------------------------------
The relevant code sections are :-
----------------------------------------------------------------------------------------------------------------------------------------------------------------
c = 3e8;
az = -180:180;
elv = -90:90;
fc = 2.4e9;
frange = (1e9:0.1e9:4e9);
%
L1 = loopRectangular('Length', ll, 'Width', lw, 'Thickness', lt,'TiltAxis',[0 0 1],'Tilt',270);
L2 = loopRectangular('Length', ll, 'Width', lw, 'Thickness', lt,'TiltAxis',[0 0 1],'Tilt',90);
xpos = [ae el -el -ae -ae -el el ae];
ypos = [el ae ae el -el -ae -ae -el];
zpos = [0 0 0 0 0 0 0 0];
normal_az = [na (90-na) (90+na) (180-na) (-180+na) (-90-na) (-90+na) -na];
normal_el = [0 0 0 0 0 0 0 0];
%
array = phased.ConformalArray('Element',[L1 L2 L1 L1 L2 L1 L2 L2],'ElementPosition',[xpos;ypos;zpos],'ElementNormal',[normal_az;normal_el]);
%
hold on;
viewArray(array,'ShowNormals',true);
view(0,90);
figure;
%pattern(array,fc,az,elv,'CoordinateSystem','polar','Type','powerdb','Normalize',true,'PropagationSpeed',c);
plotResponse(array,fc,c,'RespCut','3D','Unit','dBi','Format','polar');
%
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Appreciate any insight into the source of the error as this is the first time I have used the features of this toolbox
Larry