Returns the rightmost Y value of a series displayed in a Window.
GETYR(win)
(yr, idx) = GETYR(win)
win |
- |
Optional. Window reference. Defaults to the current Window. |
A real or complex value, the rightmost Y value.
(yr, idx) = GETYR(win) returns the Y value and associated index.
W1: 1..0.1..10;setx(5, 9);
yr = getyr(W1);
yr == 9.0
indicating the rightmost sample of the series displayed in W1 has a value of 9.0.
W1: 1..0.1..10;setx(5, 9);
(yr, idx) = getyr(W1);
yr == 9.0
idx == 81
indicating the rightmost sample of the series displayed in W1 has a value of 9.0 and occurs at index 81.
See GETYL to returns the leftmost Y value of a displayed series.