Function that deletes a row in a matrix

1 view (last 30 days)
zshockz
zshockz on 10 Oct 2016
Answered: Adam on 10 Oct 2016
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?

Accepted Answer

Adam
Adam on 10 Oct 2016
mat = rand(3);
n = 2;
mat(2,:) = [];

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!