find same pair values from two variables

4 vues (au cours des 30 derniers jours)
Mubashir
Mubashir le 25 Avr 2017
Commenté : Stephen23 le 25 Avr 2017
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

Réponse acceptée

KSSV
KSSV le 25 Avr 2017
  4 commentaires
Stephen23
Stephen23 le 25 Avr 2017
Modifié(e) : Stephen23 le 25 Avr 2017
"ismembertol is used for high precised values"
Wrong. Here is a very simple example with just one decimal place:
>> ismember(0.1,0.3-0.2)
ans = 0
Like I wrote, you should use ismembertol.
Mubashir
Mubashir le 25 Avr 2017
Yes you are right. Thanks. I have changed my code now.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by