MATLAB Help Center
Number of elements in array
N = getNumElements(array)
N = getNumElements(array) returns the number of elements, N, in the heterogeneous ULA object array.
array
example
collapse all
Construct a 4-element heterogeneous ULA. Then verify the number of elements in the array.
antenna1 = phased.ShortDipoleAntennaElement(FrequencyRange=[100e6 1e9], ... AxisDirection="Z"); antenna2 = phased.ShortDipoleAntennaElement(FrequencyRange=[100e6 1e9], ... AxisDirection="Y"); array = phased.HeterogeneousULA(ElementSet={antenna1,antenna2}, ... ElementIndices=[1 2 2 1]); N = getNumElements(array)
N = 4
Returns the number of elements, N, in the heterogeneous ULA object array.
Data Types: single | double Complex Number Support: Yes
single
double
Introduced in R2013a
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office