Skip to content

XAtYMin

X value at the index where Y is minimum.

M = XAtYMin(X, Y)

Given paired samples X and Y of the same length, returns the value of X at the index where Y is minimum. Useful for locating where a signal reaches its low point.

MathJet-specific (not in MATLAB).

x = 1:5; y = [3 1 5 2 4];
XAtYMin(x, y) % 2 (Y is min at index 2 → X(2))
  • YAtXMin — Y value at the index where X is minimum.
  • XAtYMax — X value at the index where Y is maximum.
  • min — Minimum value along a dimension, or elementwise minimum of two inputs.

Also categorized under: Range Functions / Math.