Returns the value of the nth point of a series.
GETPT(series, index)
series |
- |
Optional. Any series or multi-column table. Defaults to the current Window. |
index |
- |
An integer, the point index. |
A scalar.
getpt(gsin(20,.05),5)
displays the value 0.951057, the 5th value of the generated sine wave.
a = gsin(20,.05);
a[5]
displays the value 0.951057, the 5th value of the generated sine wave.
An index n refers to the nth point in the series. GETPT works on Real and Complex series.
You can also use the following syntax to retrieve a value from a series or table:
W3[n]
returns the nth point from Window 3.
W4[r,c]
returns the element in the table in W4 at row r and column c.
See .. (Range Specifier) for more array syntax examples.