MATLAB: How to insert row into matrix

inserting extra row in matrix

I have a matrix A=[2 3;5 6] and then I have another matrix A1=[3 4 5;6 7 8;0 0 1].I want to insert my first row of matrix A (i.e [2 3])into third row of matixA1 in such a way that third row becomes[2 3 1].

Best Answer

A1(3 , 1:2) = A(1,:);