warning: matrix is singular to working precision.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
John D'Errico
el 27 de Oct. de 2017
Editada: John D'Errico
el 27 de Oct. de 2017
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.
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!