This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getNumElements

System object: phased.HeterogeneousULA
Package: 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