Main Content

getNumSubarrays

Number of subarrays in array

Description

N = getNumSubarrays(H) returns the number of subarrays in the array object H.

example

Examples

collapse all

Create an array by tiling copies of a ULA in a 2-by-5 grid. Then, obtain the number of subarrays.

subarrays = phased.ReplicatedSubarray('Subarray',...
    phased.ULA('NumElements',3),'GridSize',[2 5]);
N = getNumSubarrays(subarrays)
N = 
10

Input Arguments

collapse all

Array object consisting of replicated subarrays, specified as a phased.ReplicatedSubarray System object.

Version History

Introduced in R2012a