XYFindΒΆ
XYFind finds in a 1D or 2D dataset a datapoint for a given x-coordinate.
-
rvInfo = XYFind(hData, rsX, bInterpol)
Return Value
rvInfo is a vector with 3 elements or 0 if no point was found.
Value | Meaning |
---|---|
rvInfo[1] | Index of the found data point, starting with 1 |
rvInfo[2] | x-coordinate of the found data point |
rvInfo[3] | y-coordinate of the found data point |
Parameters
-
rsX
rsX x-coordinate of the data point.
-
bInterpol
If bInterpol is TRUE (1), the function returns for the given x-coordinate a linear interpolated y-coordinate and the index of the data point which is closest to the given x-coordinate. If bInterpol is FALSE (0) (default value), the function returns an x-/y-coordinate and the index of the data point which is closest to the given x-coordinate.
Comment
The x data of the dataset must be of monotone increasing or decreasing order.
History
Version | Description |
---|---|
5.6.4 | rvInfo fixed. |
See also
id-1097999