Main Content

phased.HeterogeneousULA.getNumElements

Number of elements in array

Description

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

example

Examples

collapse 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

Input Arguments

collapse all

Returns the number of elements, N, in the heterogeneous ULA object array.

Data Types: single | double
Complex Number Support: Yes

Version History

Introduced in R2013a