Main Content

getNumElements

Number of elements in array

Description

example

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

Examples

collapse all

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

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

Input Arguments

collapse all

Array object consisting of replicated subarrays, specified as a phased.ReplicatedSubarray System object.

Version History

Introduced in R2012a