length()
Returns number of elements in array
Syntax
length(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 = length(rA)
returns 3
cA = list(1+j*1, 2.0+j*2, 3.0+j*3)
returns a complex array of three numbers
cSize = length(cA)
returns 3
See Also
get_array_size(), list(), scalearray(), makearray()
Notes/Equations
The length() function returns the number of elements in an array that has been created using the makearray() or list() expression.
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()