Question about using ismembertol function
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (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 Kommentar
Ali Sohrabi
am 25 Jan. 2022
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!