mldivide condition number
Mostra commenti meno recenti
Hi!
I notice that matlab calculates the condition number when it runs mldivide. In cases the matrix is singular it provides a warning in the screen. Is it possible to have the condition number from the mldivide function itself? This is because in my code the matrix operation is calculated thousands of times, and whenever the condition number indicates the matrix is close not to being invertible I need to automatize the end of a loop. Currently I calculate the condition number explicitly, but I want to improve the efficiency of the code.
Risposte (2)
Titus Edelhofer
il 27 Giu 2011
0 voti
Hi,
have you tried to play around with lastwarn? Find out if your mldivide produced a warning and react to this one? Or do you need this before doing the mldivide?
Titus
Categorie
Scopri di più su Performance and Memory 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!