horzcat
Horizontal concatenation.
📝Syntax
R = horzcat(M1, M2, ... , MN)
R = [M1, M2, ... , MN]
📥Input Arguments
Parameter Description
M1 a variable
M2 a variable
MN a variable
📤Output Arguments
Parameter Description
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
vertcatcat
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub