Main Content

getNumElements

System object: phased.HeterogeneousULA
Namespace: phased

Number of elements in array

Syntax

N = getNumElements(array)

Description

N = getNumElements(array) returns the number of elements, N, in the heterogeneous ULA object array.

Examples

expand all

Construct a 4-element heterogeneous ULA. Then verify the number of elements in the array.

antenna1 = phased.ShortDipoleAntennaElement('FrequencyRange',[100e6 1e9], ...
    'AxisDirection','Z');
antenna2 = phased.ShortDipoleAntennaElement('FrequencyRange',[100e6 1e9], ...
    'AxisDirection','Y');
array = phased.HeterogeneousULA('ElementSet',{antenna1,antenna2}, ...
    'ElementIndices',[1 2 2 1]);
N = getNumElements(array)
N = 
4