Skip to content

YAtXMax

Y value at the index where X is maximum.

M = YAtXMax(X, Y)

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).

x = [3 1 5 2 4]; y = 1:5;
YAtXMax(x, y) % 3 (X is max at index 3 → Y(3))
  • 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.