FINDMAX

Purpose:

Returns the X and Y value of the maximum of a series.

Syntax:

FINDMAX(series)

(x, y, z) = FINDMAX(series)

series

-

A series or array.

Returns:

An XY series or separate scalars:

 

b = findmax(series)

 

returns an XY or XYZ series.

 

(x, y) = findmax(series)

 

returns the X and Y values as separate scalars.

 

(x, y, z) = findmax(series)

 

returns the X, Y and Z values as separate scalars.

Example:

a = {1, 12, 0, 5};

b = findmax(a);

(x, y) = findmax(a, 0);

 

b == xy({1}, {12})

x == 1.0

y == 12.0

 

W1: gnorm(100,.1):overp(findmax(curr),lred);setsym(CIRCLE,2)

 

marks the MAX of W1 with a red circle.

Remarks:

FINDMAX returns an XY series with the same units as the input series. If the series is XYZ or a table (i.e. PLOT3D, DENSITY or CONTOUR), FINDMAX returns an XYZ series.

 

(x, y) = findmax(series) returns the first occurrence of the maximum in series.

See Also:

FIND

FINDMIN

FINDVAL

MARKMAX

MARKMIN

MAXVAL

MINVAL