How can I combine two matrices ?

64 views (last 30 days)
DIMITRA GIANNOPOULOU
DIMITRA GIANNOPOULOU on 21 Feb 2018
Commented: Matt J on 21 Feb 2018
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

Birdman
Birdman on 21 Feb 2018
C=[A;B]
or
C=vertcat(A,B)
  1 Comment
Matt J
Matt J on 21 Feb 2018
DIMITRA GIANNOPOULOU replied
Thank you so much

Sign in to comment.

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!