row elimination problem.
Mostra commenti meno recenti
Hey
I have a matrix A of 34x2 double.
I want to eliminate the rows wherein the value of both the columns is 0.
Risposta accettata
Più risposte (1)
Asad (Mehrzad) Khoddam
il 19 Ott 2020
A(all(A(:,1:2)==0,2),:)=[];
2 Commenti
madhan ravi
il 19 Ott 2020
How’s this different from my answer?
Asad (Mehrzad) Khoddam
il 19 Ott 2020
I didn't refresh the web page and the time I submitted the answer, there was no anwser to this question.
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!