Deleting rows with specific index

64 visualizaciones (últimos 30 días)
khatereh
khatereh el 31 de Mzo. de 2012
Comentada: Michael Harris el 13 de Oct. de 2022
Hi all, I want to delete rows with specific index number in my matrix and remove it from the matrix not assigning zero. For example I have a matrix with 400 row and I want to remove the rows with index =[ 6 13 16 25 30 86] What should I do? Thanks

Respuestas (1)

per isakson
per isakson el 31 de Mzo. de 2012
Try
Matrix( [6 13 16 25 30 86], : ) = [];
and learn how to use the Matlab documentation
  3 comentarios
Kaiyu Shi
Kaiyu Shi el 25 de Nov. de 2020
I googled matlab delete rows and it took me here.
Michael Harris
Michael Harris el 13 de Oct. de 2022
Exactly what helped me drop multiple matrix rows at once ^^^

Iniciar sesión para comentar.

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by