Function that deletes a row in a matrix

1 Ansicht (letzte 30 Tage)
zshockz
zshockz am 10 Okt. 2016
Beantwortet: Adam am 10 Okt. 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?

Akzeptierte Antwort

Adam
Adam am 10 Okt. 2016
mat = rand(3);
n = 2;
mat(2,:) = [];

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by