Main Content

getNumElements

System object: phased.HeterogeneousURA
Namespace: phased

Number of elements in array

Syntax

N = getNumElements(H)

Description

N = getNumElements(H) returns the number of elements, N, in the HeterogeneousURA System object™ H.

Examples

expand all

Construct a Heterogeneous URA, and obtain the number of elements.

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