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 subarrays in array


N = getNumSubarrays(H)


N = getNumSubarrays(H) returns the number of subarrays in the array object H. This number matches the number of rows in the SubarraySelection property of H.

Input Arguments


Partitioned array object.


expand all

Obtain the number of subarrays in a partitioned array.

array = phased.PartitionedArray('Array',...
   'SubarraySelection',[1 1 1 0 0; 0 0 1 1 1]);
N = getNumSubarrays(array)
N = 2