warning: matrix is singular to working precision.
조회 수: 3 (최근 30일)
이전 댓글 표시
I am working on fingerprint feature vectors. Two feature vectors that i got as result are singular. I am getting this error while finding the mahalanobis distance between these two vectors. So is there any other way to overcome this error and get a precise solution.
댓글 수: 3
John D'Errico
2017년 10월 27일
편집: John D'Errico
2017년 10월 27일
Would you call your doctor up, tell them only that you feel ill, but refuse to visit the office, and refuse to tell them any more about the problem?
So, write better code that is robust to such a problem? Since we don't see what you did, how can anyone give a better answer? We cannot read your mind or the inside of your computer memory. Just seeing a huge mess of (typically poorly written) code will not help a lot either, but someone might be willing to wade through it. Really, someone would need to first, fully understand exactly how you are solving the problem, then wade through your code to see why it is not robust. Depending on the complexity of what you have done, this could literally take someone as long to debug as it took you to write the code.
You are the only one who knows the code you wrote. So, learn how to use the debugger. First, find where the problem occurs (a singular matrix.) Then understand why the problem occurs.
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!