Concatenate - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ArrayTools

  

Concatenate

  

Array concatenation

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Concatenate(dim, A1, A2, ...)

Parameters

Ai

-

Matrix, Vector, or Array

dim

-

dimension to concatenate along

Description

• 

The Concatenate command concatenates two or more Matrices, Arrays, or Vectors along the dimension specified by dim.

• 

Two or more Ai of similar size can be combined into a structure of the same or higher dimension. The Ai must have the same dimension sizes in all dimensions other than dim. If an Ai passed to Concatenate has too few dimensions, a dimension size of 1 is automatically assumed for every missing dimension.

• 

Row vectors of length L are treated as 1xL Arrays, so concatenating row vectors along the first dimension creates a Matrix, while concatenating them along the second dimension creates a larger vector.

• 

Scalars can be concatenated to arrays to create a longer array.  Two scalars can be concatenated to form a 2-element array.  Horizontal concatenation of scalar strings is a special case, and results in a concatenated string rather than an array of strings.

• 

This function is part of the ArrayTools package, so it can be used in the short form Concatenate(..) only after executing the command with(ArrayTools).  However, it can always be accessed through the long form of the command by using ArrayTools[Concatenate](..).

Examples

withArrayTools:

Concatenate1,Vectorrowa,b,c,Vectorrowd,e,f

abcdef

(1)

Concatenate2,Vectorrowa,b,c,Vectorrowd,e,f

abcdef

(2)

Concatenate1,Vectorrowa,b,c,Vectorrowd,e,f,Array1,2,3,4,5,6

abcdef123456

(3)

See Also

ArrayTools