Deleting rows with specific index
64 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
per isakson
am 31 Mär. 2012
Try
Matrix( [6 13 16 25 30 86], : ) = [];
and learn how to use the Matlab documentation
3 Kommentare
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!