DADiSP Worksheet Functions > Function Categories > Peak Analysis > MAX

 

MAX

Purpose:

Finds the maximum of a series or two expressions.

Syntax:

MAX(series)

(val, idx) = MAX(series)

MAX(val1, val2)

series

-

Optional. A series. Defaults to the current Window.

val1

-

Any integer, real or series.

val2

-

Any integer, real or series.

Returns:

A scalar. MAX(val1, val2) can return a series.

 

(val, idx) = MAX(series) returns both the maximum value and the index of the maximum.

Example:

W1: gsin(100,.01)

max(W1)

 

returns 1.0

 

(v, idx) = max(W1)

 

v == 1.0

idx == 26

Example:

max(10, 20) returns 20.

Example:

max({2, 3, 4}, 3) returns the series {3, 3, 4}.

Example:

max({1, 2, 3}, {0, 4, 2}) returns the series {1, 4, 3}.

Remarks:

See COLMAX to find the maximums of array columns.

 

See VMAX to compare more than two expressions.

 

See MAXLOC to obtain the location of the maximum.

 

See MARKMAX to mark the maximum value of a series with a symbol.

See Also:

COLMAX

COLMAXIDX

COLMINIDX

FIND

FMAX

FMIN

MARKMAX

MAXIDX

MAXLOC

MAXVAL

MIN

MINIDX

ROWMAX

XMINMAX