CURXEXTRACT

Purpose:

Extract series from a source window based on cursor X locations.

Syntax:

CURXEXTRACT(srcwin, deswin1, deswin2, ..., deswinN)

srcwin

-

A window. The source window to obtain the X locations of the first and second cursors.

deswinN

-

Optional, zero or more Windows. The target windows. If not specified, defaults to the current window.

Returns:

A series if no target window is specified else the result of each extraction is placed into the target windows.

Example:

W1: integ(gnorm(1000, 1/1000));curput(0.2);curput(0.4, 2)

W2: curxextract(w1)

 

W1 contains 1000 point random series.  The first cursor location of W1 is set to 0.2 and the second cursor location is set to 0.4. W2 contains the extracted series in W1 from 0.2 to 0.4.

Example:

W1: integ(gnorm(1000, 1/1000));curput(0.2);curput(0.4, 2)

W2: integ(gnorm(1000, 1/1000))

W3: integ(gnorm(1000, 1/1000))

 

curxextract(w1, w2, w3)

 

W1 through W3 originally contain 1000 point random series. The first cursor location of W1 is set to 0.2 and the second cursor location is set to 0.4. The series in W2 and W3 are extracted from 0.2 to 0.4.

Remarks:

If no target window is specified, the source window is extracted into the current window.

 

The source window can also be a target window.

 

See CUREXTRACT to extract multiple windows based on the index positions of the source window cursors.

See Also:

CUREXTRACT

CURLOCSET

CURPUT

EXTRACT

EXTRACTWIN

XEXTRACT

XEXTRACTWIN