linalg(deprecated)
stackmatrix
join two or more matrices together vertically
Calling Sequence
Parameters
Description
Examples
stackmatrix(A, B,...)
A, B, ...
-
matrices or vectors
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Matrix], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function stackmatrix joins two or more matrices or vectors together vertically, where a vector is interpreted as a row vector. The matrices and vectors must have the same number of columns.
The command with(linalg,stackmatrix) allows the use of the abbreviated form of this command.
with⁡linalg:
a≔matrix⁡2,2,1,2,3,4
a≔1234
b≔matrix⁡2,2,5,6,7,8
b≔5678
stackmatrix⁡a,b
12345678
v≔vector⁡2,1,2
v≔12
stackmatrix⁡v,b,v
12567812
See Also
linalg(deprecated)[augment]
linalg(deprecated)[extend]
LinearAlgebra
Matrix and Vector Construction Shortcuts
Download Help Document