linalg(deprecated)/stackmatrix - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/stackmatrix

linalg(deprecated)

  

stackmatrix

  

join two or more matrices together vertically

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

stackmatrix(A, B,...)

Parameters

A, B, ...

-

matrices or vectors

Description

• 

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.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Matrix], instead.

> 

with⁡linalg:

> 

a≔matrix⁡2,2,1,2,3,4

a≔1234

(1)
> 

b≔matrix⁡2,2,5,6,7,8

b≔5678

(2)
> 

stackmatrix⁡a,b

12345678

(3)
> 

v≔vector⁡2,1,2

v≔12

(4)
> 

stackmatrix⁡v,b,v

12567812

(5)

See Also

linalg(deprecated)[augment]

linalg(deprecated)[extend]

LinearAlgebra

Matrix and Vector Construction Shortcuts