get_array_size()

Get the size of the array

Syntax
get_array_size(Array)

Name Description Type Required
Array array integer, real, complex or string array yes

Examples

rA = makearray(1, 1, 2.0, 3.0)
returns a real array of three numbers
rSize = get_array_size(rA)
returns 3
CA = makearray(z, 1+j*1, 2+j*2)
CSize = get_array_size(CA)
returns 2
SA = makearray(3, "One", "Two")
SSize = get_array_size(SA)
returns 2

See Also

length(), list(), makearray()

Notes/Equations

The get_array_size() function returns the number of elements in an array that has been created using the makearray() function. The get_array_size() function cannot be used with arrays that were created using the list() function.

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources