Main Content

getNumSubarrays

Number of subarrays in array

Description

example

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.

Examples

collapse all

Obtain the number of subarrays in a partitioned array.

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

Input Arguments

collapse all

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

Version History

Introduced in R2012a