Delete rows from a matrix
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Eranja Noopehewa
il 25 Mar 2020
Commentato: Ameer Hamza
il 25 Mar 2020
Hi, I want to delete 1:5 and 10:15 rows from a given 15*1 matrix. How can I do this ?
0 Commenti
Risposta accettata
Ameer Hamza
il 25 Mar 2020
Modificato: Ameer Hamza
il 25 Mar 2020
Something like this
x = (1:15)';
x([1:5 10:15], :) = [];
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!