Question about using ismembertol function
Show older comments
Hi there,
I have a question about using ismembertol function. I am working with this function, and now I am spotting out that something is going wrong with my calculation regarding this function. I show what is wrong in one small example.
Consider
A=[11538.0882247944, 21569.4133365453]
B=[ 11537.6120343925,21611.5704794796]
ismembertol(A,B, 10e-3,'ByRows',true)
I want to check whether A is a part of B or not? The result should show that A has not been found in B, but it says that it finds! Could you please help what I made a mistake here, or is it a bug in Matlab?
Accepted Answer
More Answers (1)
Note that 10e-3 = 1e-2. Maybe that is the problem
A=[11538.0882247944, 21569.4133365453]
B=[11537.6120343925, 21611.5704794796]
ismembertol(A,B,10e-3,'ByRows',true)
ismembertol(A,B, 1e-3,'ByRows',true)
1 Comment
Ali Sohrabi
on 25 Jan 2022
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!