Function reference · Linear algebra

augment

Joins two matrices side by side.

Both must have the same number of rows.

Notation

augment(left, right)

Write it in an expression: nerdamer('augment(matrix([1,2],[3,4]),matrix([5],[6]))'), or in the Playground.

Parameters

left
Matrix placed on the left.
right
Matrix appended on the right.

Examples

Add a column.

augment(matrix([1,2],[3,4]),matrix([5],[6]))
// → matrix([1, 2, 5], [3, 4, 6])
Open in Playground

← Back to Function reference