Main Content

getNumElements

Number of elements in array

Description

example

N = getNumElements(H) returns the number of elements in the array object H.

Examples

collapse all

Obtain the number of elements in an array that is partitioned into subarrays.

array = phased.PartitionedArray('Array',phased.URA('Size',[2 3]),...
   'SubarraySelection',[1 0 1 0 1 0; 0 1 0 1 0 1]);
N = getNumElements(array)
N = 6

Input Arguments

collapse all

Partitioned array, specified as a phased.PartitionedArray System object.

Version History

Introduced in R2012a