Index of maximum

Syntax: s = IMAX(x)

The IMAX function only accepts a vector argument, and returns the index of the maximum value of that vector. The search begins with index 1, so the maximum with the smallest index will be returned. The result is a scalar value.