XEXTRACTWIN

Purpose:

Extracts a portion of a series from multiple Windows using X values.

Syntax:

XEXTRACTWIN(W1, W2, ..., WN, xstart, xend, offset)

WN

-

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

xstart

-

A real, the starting X value.

xend

-

A real, the ending X value.

offset

-

Optional. A real, the X offset of the resulting series. Defaults to xstart, the starting X value.

Returns:

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

Example:

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

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

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

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

 

xextractwin(0.1, 0.4)

 

W1 through W4 originally contain 1000 point random series. XEXTRACTWIN extracts 301 points from each window starting at  the X value 0.1 and ending at the X value 0.4.

Example:

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

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

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

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

 

xextractwin(W1, W2, 0.1, 0.4)

 

Same as above except only W1 and W2 are processed.

Example:

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

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

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

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

 

xextractwin(W2..W4, 0.1, 0.4, 0.0)

 

W1 through W4 originally contain 1000 point random series. XEXTRACTWIN extracts 301 points from W2, W3 and W4 starting at the X value 0.1 and ending at the X value 0.4. The XOFFSET for each window is set to 0.0.

Remarks:

If xstart 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 EXTRACTWIN to extract from multiple windows using series indices.

See Also:

CURXEXTRACT

CUT

EXTRACT

EXTRACTWIN

REMOVE

XEXTRACT