MATLAB: [help] combining 2 matrix problems

matrices

hey everyone, i have a question about combining 2 matrix….btw i have 2 matrix as follows :
A=[1,1,1;0,0,2];
B=[0,0,0;1,1,0];
i want to make a new matrix from the combination of my 2 previous matrix, and the result is :
C= [1,1,1;1,1,2]
does anyone here know how to do that?

Best Answer

Isn't it simply ?
C=A+B;