Previous Up Next

6.44.3  Combining matrices

Making a matrix with a list of matrices: blockmatrix

The blockmatrix combines several matrices into one larger matrix.


Examples.

Making a matrix from two matrices: semi_augment

The semi_augment command concatenates two matrices with the same number of columns.


Examples.

Making a matrix from two matrices: augment concat

The augment command glues two matrices, either side by side or one on top of the other.
Here, concat can be used as a synonym for augment.


Examples.

Note that if A and B have the same dimension, then augment(A,B) will return a matrix with the same number of rows as A and B by horizontal gluing. In that case, if you want to combine them by vertical gluing, you must use semi_augment(A,B).

Appending a column to a matrix: border

The border command adds a column to a matrix.


Examples.


Previous Up Next