reduce rows of a due to b
Afficher commentaires plus anciens
Hi everyone, I have 2 matices, A and B
a = [0 1 0
0 1 1
1 0 1
1 1 1];
b =[1 1 1
0 1 1];
Is it possible to reduce a using b?
Réponse acceptée
Plus de réponses (1)
Jos (10584)
le 30 Août 2019
You can simply use setdiff with the rows option ...
c = setdiff(a,b,'rows')
Catégories
En savoir plus sur Descriptive Statistics 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!