cat
Concatenate arrays.
📝Syntax
R = cat(dim, A, B)
R = cat(dim, A1, A2, ..., An)
📥Input Arguments
Parameter Description
dim Dimension to operate along: positive integer scalar.
A a variable: first input.
B a variable: second input.
A1, A2, ..., An List of inputs to concatenate
📤Output Arguments
Parameter Description
R concatenated array
📄Description

R = cat(dim, M1, M2, ... , MN) returns the concatenation of M1, M2, ... , MN along the dimension dim.

💡Examples
A = eye(2, 2);
B = ones(2, 2);
C = cat(2, A, B)
🔗See Also
vertcathorzcat
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub