getNumElements

System object: phased.ReplicatedSubarray
Package: phased

Number of elements in array

Syntax

N = getNumElements(H)

Description

N = getNumElements(H) returns the number of elements in the array object H. This number includes the elements in all subarrays of the array.

Input Arguments

H

Array object consisting of replicated subarrays.

Examples

expand all

Number of Elements in Array with ReplicatedSubarrays

Create an array with two copies of a 3-element ULA, and obtain the total number of elements.

H = phased.ReplicatedSubarray('Subarray',...
    phased.ULA('NumElements',3),'GridSize',[1 2]);
N = getNumElements(H);

See Also

Was this topic helpful?