Function that deletes a row in a matrix

2 vues (au cours des 30 derniers jours)
zshockz
zshockz le 10 Oct 2016
Réponse apportée : Adam le 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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by