MATLAB: Function that deletes a row in a matrix

deletematrix

So I have a simple 3 by 3 matrix that I need to make a function that is able to delete any row in the matrix, any suggestions?

Best Answer

mat = rand(3);
n = 2;
mat(2,:) = [];