You are on page 1of 1

A = rand(4);

B = rand(4);

if isequal(size(A,size(B)))
C = [A;B];
else
disp('The two matrices are not of the same size');
end

You might also like