This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


System object: phased.PartitionedArray
Package: phased

Number of elements in array


N = getNumElements(H)


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

Input Arguments


Partitioned array object.


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