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

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