Main Content

getNumElements

System object: phased.PartitionedArray
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.

Input Arguments

H

Partitioned array object.

Examples

expand 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