EXTRACTWIN

Purpose:

Extracts a portion of a series from multiple Windows.

Syntax:

EXTRACTWIN(W1, W2, ..., WN, start, length, offset)

WN

-

Optional. Zero or more Windows. If not specified, all windows are processed.

start

-

An integer value for the starting point.

length

-

An integer value for the number of points to be extracted. -1 implies extract to the end of the series

offset

-

Optional. A real, the X offset of the resulting series. Default is the X value of the starting point.

Returns:

Nothing, the result of each extraction is placed into the target windows.

Example:

W1: integ(gnorm(1000, 1))

W2: integ(gnorm(1000, 1))

W3: integ(gnorm(1000, 1))

W4: integ(gnorm(1000, 1))

 

extractwin(100, 400)

 

W1 through W4 originally contain 1000 point random series. EXTRACTWIN extracts 400 points from each window starting at  the 100th point.

Example:

W1: integ(gnorm(1000, 1))

W2: integ(gnorm(1000, 1))

W3: integ(gnorm(1000, 1))

W4: integ(gnorm(1000, 1))

 

extractwin(W1, W2, 100, 400)

 

Same as above except only W1 and W2 are processed.

Example:

W1: integ(gnorm(1000, 1))

W2: integ(gnorm(1000, 1))

W3: integ(gnorm(1000, 1))

W4: integ(gnorm(1000, 1))

 

extractwin(W2..W4, 100, 400, 0.0)

 

W1 through W4 originally contain 1000 point random series. EXTRACTWIN extracts 400 points from W2, W3 and W4 starting at the 100th point. The XOFFSET for each window is set to 0.0.

Remarks:

If start is negative, zeros are prepended to the result. If the number of points to extract is greater than the series or table length, the result is padded with zeros.

 

See XEXTRACTWIN to extract from multiple windows using X values.

See Also:

CUREXTRACT

CUT

EXTRACT

REMOVE

XEXTRACT

XEXTRACTWIN