How can I combine two matrices ?

A = [1 2 3; 4 5 6; 7 8 9] B = [10 11 12; 13 14 15]
C = [1 2 3; 4 5 6; 7 8 9; 10 11 12; 13 14 15]

 Accepted Answer

C=[A;B]
or
C=vertcat(A,B)

1 Comment

DIMITRA GIANNOPOULOU replied
Thank you so much

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!