augment(...) - Augment function

Returns an array formed by placing arguments left to right. Arguments are arrays having the same number of rows or they are scalars and row vectors.

In the case of scalar values the augment function returns a row vector containing the list of arguments.

augment1

In the next example three row vectors a, b, and c are input as arguments to the augment function.

augment2

In order to obtain a matrix the vectors must be in column order. The three column vectors d, f, and g are input as arguments to the augment function.

augment3

The column vectors can easily be translated to rows in the matrix by applying the matrix transpose to the augment function.

augment4

See also stack

Return to Functions page

ScrewTurn Wiki version 2.0.37. Some of the icons created by FamFamFam.