horzcat

Horizontal concatenation.

Syntax

  • R = horzcat(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 = horzcat(M1, M2, ... , MN) returns the horizontal concatenation of M1, M2, ... , MN along the dimension 2.

Examples

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

See also

vertcat, cat.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated