vertcat

Vertical concatenation.

Syntax

  • R = vertcat(M1, M2, ... , MN)

  • R = [M1; M2; ... ; MN]

Input argument

  • M1 - a variable

  • M2 - a variable

  • MN - a variable

Output argument

  • R - result of [M1; M2; ... ; MN]

Description

R = vertcat(M1, M2, ... , MN) returns the vertical concatenation of M1, M2, ... , MN along the dimension 1.

Examples

A = eye(2, 2);
B = ones(2, 2);
C = vertcat(A, B)
D = [A; B]
A = 'nel';
B = 'son';
C = vertcat(A, B)

See also

horzcat, cat.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated