Splitting a matrix by even and odd numbers
Mostra commenti meno recenti
I have a 200x2 matrix. Column A contains a mixture of even and odd numbers. Column B contains 1s and 0s.
Where the numbers in Column A are even, I need to extract those rows into a new nx2 matrix. The numbers in Column A and B must remain correctly alligned.
Hope you can help!
Risposta accettata
Più risposte (1)
Chris Williams
il 12 Nov 2013
0 voti
Categorie
Scopri di più su Annotations 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!