YAtXMax
Y value at the index where X is maximum.
Syntax
Section titled “Syntax”M = YAtXMax(X, Y)Description
Section titled “Description”Given paired samples X and Y of the same length, returns the value of Y at the index where X is maximum. Symmetric counterpart of XAtYMax.
MathJet-specific (not in MATLAB).
Examples
Section titled “Examples”x = [3 1 5 2 4]; y = 1:5;YAtXMax(x, y) % 3 (X is max at index 3 → Y(3))See also
Section titled “See also”XAtYMax— X value at the index where Y is maximum.YAtXMin— Y value at the index where X is minimum.
Also categorized under: Range Functions / Math.