• % So you have 2 matrices that are the same size.A = rand(4,5)B = rand(4,5)+50% Stack them on top of each otherC = cat(1, A, B)% Rearrange them to have the same 1st dim size as the originalC = reshape(C, size(A,1),[])