MATLAB Function Reference    
vertcat

Vertical concatenation

Syntax

Description

C = vertcat(A1,A2,...) vertically concatenates matrices A1, A2, and so on. All matrices in the argument list must have the same number of columns.

vertcat concatenates N-dimensional arrays along the first dimension. The remaining dimensions must match.

MATLAB calls C = vertcat(A1,A2,...) for the syntax C = [A1;A2;...] when any of A1, A2, etc. is an object.

Examples

Create a 5-by-3 matrix, A, and a 3-by-3 matrix, B. Then vertically concatenate A and B.

See Also

horzcat, cat


  version view