imax

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 10:59, 21 April 2011 by 193.171.195.48 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Returns the index of largest value of argument x.

Usage
imax(x)
Result
The result is the index of the maximum value of x.
  • if x is a scalar: the result is 0
  • if x is a vector: the result is the index (row) of the maximum
  • if x is a matrix: the result is the element index i of the maximum; the column c and the row r can be computed as follows: c := int i/x[!nrow], r := int i%x[!nrow]
See also
max, absmax, imin,

<function list>

Navigation menu

Personal tools