YVALS

Purpose:

Returns the Y values from a series.

Syntax:

YVALS(series, item)

series

-

A series.

item

-

Optional. An integer, the series item. Set to -1 for all items. Defaults to 1, the primary item.

Returns:

A new series or table containing the Y values of the series.

Example:

W1: 1..10

W2: yvals(W1)

 

W2 == 1..10

Example:

W1: gnorm(10, 1)

W2: 1..10

W3: xy(w1, w2)

W4: yvals(W3)

 

W2 == 1..10

Example:

W1: rand(10, 3)

W2: rand(10, 3)

W3: xy(w1, w2)

W4: yvals(w3, -1)

 

W3 contains three XY series of length 10.

 

W4 contains a 10x3 series where each column contains the Y values of each XY series in W3. In this case, W4 == W2.

See Also:

XMINMAX

XVALS

XY