find same pair values from two variables
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have two variables, each variable consist of two columns but different rows Now i have to match pairs in row whether which pairs are common in both variables or not? Attached figure shows variable with two values. Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163301/image.jpeg)
1 commentaire
Stephen23
le 25 Avr 2017
Do NOT use ismember
Those are floating point values. It would be an extremely bad idea to use ismember on floating point values, because ismember tests for equivalence of the values. Really bad idea:
Those values should be compared using a tolerance, or with ismembertol.
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Whos 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!