<< GetArgs SYMSCI Toolbox Inv >>

SYMSCI Toolbox >> SYMSCI Toolbox > HCat

HCat

(,) horizontal catenation operator

Syntax

A = HCat( A1, A2 )
A = [ A1, A2 ]

Arguments

A1, A2, A

symbolic, string, double, or integer matrix

Description

Returns a matrix A, which is build by horizontal catenation of A1 and A2.

Examples

// scalars
a1 = Sym("a1")
a2 = Sym("a2")

// horizontal catenation gives matrix
A = [a1, a2]

// catenate matrix and scalar
[A, a1]
[a2, A]

// catenate matrix and matrix ...
[A, A, A]

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< GetArgs SYMSCI Toolbox Inv >>