LENGTH

Purpose:

Macro. Returns the length of a series.

Syntax:

LENGTH(series)

series

-

Optional. A series, defaults to the current Window.

Returns:

An integer.

Expansion:

SERSIZE

Example:

length({4,5,6})

 

returns 3, the length of the generated series.

Example:

W1: gnorm(1000, 1)

W2: gnorm(length(w1), deltax(w1))

 

W2 contains a random series with the same number of points and DELTAX as W1.

Remarks:

The LENGTH Macro is identical to SERSIZE.

 

Use COLLENGTH to return the length of each column of a table.

 

LENGTH of an empty Window or variable returns 0.

 

LENGTH of a scalar returns 1.

See Also:

COLLENGTH

NUMEL

SERSIZE

SIZE