MERGE

Purpose:

Creates a new series or table by splicing input series or tables.

Syntax:

MERGE(ser1, ser2, ..., serN , n, pad)

serN

-

One or more series.

n

-

Optional. An integer, the number of times to merge the series. Defaults to 1.

pad

-

Optional. An integer, the "pad" flag.

0:

do not pad unequally sized series with zeros

1:

pad unequally sized with zeros (default)

Returns:

A new series where the first point is point 1 of series 1, the second point is point 1 of series 2, the third point is point 1 of series 3, etc..

Example:

merge({1, 2, 3}, {1, 2, 3})

 

returns the merged series {1, 1, 2, 2, 3, 3}

Example:

merge({1, 2, 3}, {1, 2, 3}, 2)

 

merges the input series twice to yield

 

{1, 1, 1, 2, 2, 2, 3, 3, 3}

Example:

merge(W1, W2, W6, gcos(100, 0.1), 0)

 

creates a new series by splicing the series in Window 1, Window 2, Window 6, and a generated cosine wave in the method described above but will not pad unequal sized series with zeros.

 

To merge series in Window 3 through Window 8, where W3's series is 100 points long and the rest have 75 points each:

 

merge(W3..W8)

 

will merge the series in Windows 3 through 8 and pad the series in W4 to W8 with zeros to the length of 100 points.

Remarks:

MERGE operates on any number of input series. Input series can be Real or Complex; MERGE returns a Complex series if any of the input series are Complex.

 

If the merged series have different lengths, MERGE pads series with zeros to the length of the longest series. Setting pad to 0 suspends the padding function.

See Also:

CONCAT

DECIMATE

INSERT

REMOVE

REPLICATE

UNMERGE