DADiSP Worksheet Functions > Function Categories > Peak Analysis > GETPT

 

GETPT

Purpose:

Returns the value of the nth point of a series.

Syntax:

GETPT(series, index)

series

-

Optional. Any series or multi-column table. Defaults to the current Window.

index

-

An integer, the point index.

Returns:

A scalar.

Example:

getpt(gsin(20,.05),5)

 

displays the value 0.951057, the 5th value of the generated sine wave.

Example:

a = gsin(20,.05);

a[5]

 

displays the value 0.951057, the 5th value of the generated sine wave.

Remarks:

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.

See Also:

.. (Range Specifier)

CURSORON

FIND PEAKS AND VALLEYS

FMAX

FMIN