double presition problem
Ältere Kommentare anzeigen
Hello to everyone, I want find function to return coordinates of a matrix,but it returns Empty matrix: 0-by-1 a lot of times.I think that is a double presicion problem.I remember taht there was a matlab faq that analysed this problem,but i can't find it.Could anybody help me with this?Thank's in advantage!
Antworten (3)
the cyclist
am 9 Apr. 2011
0 Stimmen
I think you mean problems arising from the use of "floating point" representation of numbers, so you might want to search on "floating point" and "matlab" to find some info. Here is one resource from the Mathworks site:
It points to other sources of information that also might help you.
If that does not answer your question, you could post some of your code maybe find some help sorting things out.
bym
am 9 Apr. 2011
instead of
find(x==1)
use
find(abs(x-1)<=tol)
Mary Kodogianni
am 9 Apr. 2011
0 Stimmen
Kategorien
Mehr zu Matrix Indexing 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!