ArrayStart
Description: | Returns the first element in an array dimension |
Returns: | Numeric |
Usage: | Script or steady state. |
Related to: | ArrayDimensions | ArraySize| Array Functions |
Function Groups: | Array |
Format: | ArrayStart(Array, Dimension) |
Parameters: |
Array |
Required. Any array variable. |
Dimension |
Required. Any numeric expression that gives the array dimension to measure starting at 0. |
Comments: | The ArrayStart function is useful for writing intelligent parameterized modules. The module can determine the first index in an array that is passed to it. |
Example:
q[1, 10][2, 20]; ... start = ArrayStart(Q, 1);
Start will receive the value 2.