find same pair values from two variables

6 次查看(过去 30 天)
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

采纳的回答

KSSV
KSSV 2017-4-25
  4 个评论
Stephen23
Stephen23 2017-4-25
编辑:Stephen23 2017-4-25
"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 2017-4-25
Yes you are right. Thanks. I have changed my code now.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by