XAtYMin
X value at the index where Y is minimum.
Syntax
Section titled “Syntax”M = XAtYMin(X, Y)Description
Section titled “Description”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).
Examples
Section titled “Examples”x = 1:5; y = [3 1 5 2 4];XAtYMin(x, y) % 2 (Y is min at index 2 → X(2))See also
Section titled “See also”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.