System object: phased.HeterogeneousConformalArray Package: phased
Number of elements in array
N = getNumElements(H)
N = getNumElements(H) returns the number of elements, N, in the conformal array object H.
H
expand all
Construct a heterogeneous 8-element circular array and use the getNumElements method to return the number of elements.
getNumElements
antenna1 = phased.ShortDipoleAntennaElement('FrequencyRange',[100e6 1e9], ... 'AxisDirection','Z'); antenna2 = phased.ShortDipoleAntennaElement('FrequencyRange',[100e6 1e9], ... 'AxisDirection','Y'); N = 8; azang = (0:N-1)*360/N-180; array = phased.HeterogeneousConformalArray('ElementPosition', ... [cosd(azang);sind(azang);zeros(1,N)], ... 'ElementNormal',[azang;zeros(1,N)], ... 'ElementSet',{antenna1,antenna2}, ... 'ElementIndices',[1 1 1 1 2 2 2 2]); N = getNumElements(array)
N = 8
You have a modified version of this example. Do you want to open this example with your edits?