Setdiff n intersect question
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I have two dataset.
1)
- Shop# - floor#
- 321 - 4
- 321 - 2
- 321 - 3
- 322 - 0
- 322 - 2
2)
- shop# - floor#
- 322 - 1
- 322 - 0
- 322 - 2
if i do intersect of those two, i expect following, but i get just first row. WHy? 3)
- shop# - floor#
- 322 - 0
- 322 - 2
0 commentaires
Réponse acceptée
Guillaume
le 21 Août 2014
>> a=[321 4;321 2;321 3;322 0;322 2];
>> b=[322 1;322 0;322 2];
>> intersect(a, b, 'rows')
ans =
322 0
322 2
8 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!