Question about using ismembertol function
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (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 Commento
Ali Sohrabi
il 25 Gen 2022
Categorie
Scopri di più su Data Import from MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!