concat#
Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.
Available in: math cells, REPL.
Syntax#
concat(A, B, C, ...)
concat(A, B, C, ..., dim)
Arguments and behavior#
For matrices, dimensions must match the operation. Singular matrices or incompatible shapes can fail. Cell indexing starts at 1. The example returns matrix.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
A = [1, 2; 5, 6]
B = [3, 4; 7, 8]
concat(A, B)Interactive examples could not load. You can still copy the expressions.
Expected result: matrix.
See also#
det · diag · identity · inv · ones · range · size · squeeze · subset · trace · transpose · zeros