Documentation Center

  • Trial Software
  • Product Updates

getNumSubarrays

System object: phased.PartitionedArray
Package: phased

Number of subarrays in array

Syntax

N = getNumSubarrays(H)

Description

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

H

Partitioned array object.

Examples

expand all

Number of Subarrays in Partitioned Array

Obtain the number of subarrays in a partitioned array.

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

See Also

Was this topic helpful?