list()
Creates a list of values
Syntax
list(A0,A1,A2,..)
Arguments
| Name | Description | Type | Required |
|---|---|---|---|
| A0,A1,A2,. | individual values of the array | integer, real, complex, string or array † | yes |
| If the arguments are arrays, they must all be the same length | |||
Examples
y = list(1.0, 2.0, 3.0)
returns a real list of three numbers
y = list(1+j*1, 2+j*2, 3+j*3)
returns a complex list of three complex numbers
See Also
get_array_size(), length(), makearray(), scalearray()
Notes/Equations
The list() function is nothing but an array in Simulator Expressions. It is similar to the makearray() function. The function can be used to create a list of integer, real, or complex values. With the list() function, the data type does not need to be specified. If any of the array entries are real, the array returned is of type real. If any of the entries are complex, the array is of type complex. There should be a minimum of one entry in the list. Unlike the makearray() function, the list() function cannot be used to create an array of string or text values.
| Note The list() function defined for Simulator Expressions has an index starting at 1; in contrast to the list() function in the Measurement Expressions, which has a starting index of 0. This function does not support mixed value types in the same area (e.g. complex, real, integer). |
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()