MINIDX

Purpose:

Finds the index of the minimum value of a series.

Syntax:

MINIDX(series)

(row, col) = MINIDX(series)

series

-

Optional. A series. Defaults to the current Window.

Returns:

An integer, the index of the minimum of the series.

 

(row, col) = MINIDX(series) returns both the row and column indices of the minimum value.

Example:

W2: gsin(100, .01)

minidx(W2)

 

returns 76, the index of the location of the minimum.

Example:

W2[minidx(W2)] == min(W2) == 1.0

 

verifies that minidx returns the index of the minimum.

Example:

(x, y) = fxyvals(-2, 2, .1, -2, 2, .1);

z = sin(x*y)

mi = minidx(z)

 

mi == 320

z[mi] == min(z) == -0.999942

Example:

W1: ones(10);W0[3, 4] = 0.5;

(r, c) = minidx(W1)

 

r == 3

c == 4

 

returns the row and column of the minimum of W1.

Remarks:

For tabular or XYZ data, MINIDX returns the index in "unraveled" form such that z[minidx(z)] == min(z).

 

Use (r, c) = minidx(series) to return the row and column indices of the minimum.

 

See MINLOC to obtain the location of the minimum in terms of x and y units.

 

See COLMINIDX to find the indices of the minimums for each column in a table.

See Also:

COLMAX

COLMINIDX

FIND

FMAX

FMIN

MAXIDX

MAXLOC

MAXVAL

MIN

MINLOC