{} Array Construction

Purpose:

Creates a series or multiple column array.

Syntax:

{a, b, c}

{{a, b}, {c, d}}

 a, b, c, d - Any number of expressions resulting in an integer, real, complex, series, or string.

Returns:

A series or array.

Example:

a = {1, 2, 3}

Produces a single column, 3 element series

Example:

a = {0, a, 0}

returns the series {0, 1, 2, 3, 0}.

Example:

b = {{1, 2}, {3, 4}, {5, 6}}

Creates the 3x2 array

{{1, 2}

{3, 4}

{5, 6}}

Example:

c = {"a ", "string"}

creates the series {97, 32, 115, 116, 114, 105, 110, 103}

Example:

d = {1, 2i, 3}

creates the complex series {1+0i, 0+2i, 3+0i}

Example:

W1: gnorm(1000,1)

W2: {max(w1)};tablev

displays the maximum of W1 as a number in W2. W2 contains a single point series displayed as a table.

Example:

Assigning elements to the empty series, {}, removes values. For example:

a = ravel(1..9, 3);

a[.., 2] = {};

Removes the 2nd column and returns the array:

{{1, 7},

{2, 8},

{3, 9}}

Remarks:

The {} operator acts as a powerful CONCAT function by combining any number of any kind of data types to produce a single or multi-column array.