maxindex
Maximum index of the vector.
Syntax
maxindex(vector )
Argument
- vector
 - A valid vector expression.
 
Example
| Templex Expression | Result | 
|---|---|
{maxindex( {0, 1, 2, 3} )} | 
                                3 | 
                            
{maxindex( {35, 22, 15} )} | 
                                2 | 
                            
{maxindex( {0, 0, 0, 0} )} | 
                                3 | 
                            
Comments
The maxindex function returns the maximum index of the vector. The result is a scalar.
This returns the same value as (numpts(vector)-1).