DADiSP Worksheet Functions > Function Categories > Peak Analysis > FINDMAX
Returns the X and Y value of the maximum of a series.
FINDMAX(series)
(x, y, z) = FINDMAX(series)
series |
- |
A series or array. |
An XY series or separate scalars:
b = findmax(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.
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.
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.