cat

Joins the given arrays along a specified dimension, dim.

Syntax

cat (dim, a...)

Inputs

dim
Type: Positive, finite scalar
a,...
Matrices to be concatenated. All the matrices to be concatenated should have the same dimension.
Type: matrix

Outputs

R
Type: matrix

Example

Concatenate example:

R = cat(2,[1,2,5;6,1,2],[2,7,1;9,2,3])
R = [Matrix] 2 x 6
  1  2  5  2  7  1
  6  1  2  9  2  3