deleting specific rows in an array based on values in another array
Afficher commentaires plus anciens
I have two 16x1 column vectors, the first is [1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16], and another [777; 777; 0; 0; -9; 0; 0; -6; 0; 0; 0; 777; 0; 0; 0; 777]
I need to delete the values from the first column that correspond to the rows in column 2 that contain 777
i.e. [1; 2; 12; 16]
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!