Deleting specific Rows in a matrix
Mostra commenti meno recenti
Hi,
I have a matrix "A" that is 350x1 matrix, so it is a very large matrix. This matrix has about 40 rows that I want to remove. I know these rows and they are stored in another matrix "B", which is a 40x1 matrix. How do I delete the rows that are listed in matrix "B" from matrix "A"?
Risposta accettata
Più risposte (1)
Ondrej Budac
il 7 Apr 2014
If your matrix B has the row indices, it suffices to write
A(B) = [];
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!