Skip to main content

WaveMax

WaveMax (waveName [, x1, x2])

The WaveMax function returns the maximum value in the wave for points between x=x1 to x=x2, inclusive.

Details

If x1 and x2 are not specified, they default to -inf and +inf, respectively.

The X scaling of the wave is used only to locate the points nearest to x=x1 and x=x2. To use point indexing, replace x1 with "pnt2x(waveName,pointNumber1 )", and a similar expression for x2.

If the points nearest to x1 or x2 are not within the point range of 0 to numpnts(waveName )-1, WaveMax limits them to the nearest of point 0 or point numpnts(waveName)-1.

NaN values in the wave are ignored.

See Also

WaveMin, WaveMinAndMax, WaveStats