Method on @sym: cat (dim, A, B, …)

Concatenate symbolic arrays along particular dimension.

dim is currently restricted to 1 or 2 as symbolic arrays are currently only two-dimensional.

Example:

syms x
cat(1, x, 2*x, 3*x)
  ⇒ (sym) [x  2⋅x  3⋅x] (1×3 matrix)
cat(2, x, x)
  ⇒ (sym 2×1 matrix)
      ⎡x⎤
      ⎢ ⎥
      ⎣x⎦

See also: @sym/vertcat, @sym/horzcat.

Package: symbolic