MATLAB: Repeat last row at the end of matrix

matrixrepeatrow

I want to repeat the last row of my 33×4 matrix. how can I do this? thanks

Best Answer

B = [A; A(end,:)] ;