sometimes I get a warning : rank deficient
2 views (last 30 days)
sometimes I get a Warning: Rank deficient, rank = 0, tol = 0.000000e+00 and it points to an equation in a loop :
a = sqrt(abs(x/x-d))); where x and d are scalars
my results seem plausible, but should I be concerned about this warning ?
Matt J on 2 Mar 2020
Edited: Matt J on 2 Mar 2020
should I be concerned about this warning
If the line you've shown is what caused the warning, then it's likely x and d are not both scalars as you intended. You might need to be concerned about that.
Incidentally, this line looks like it should be,
a = sqrt( abs( x./(x-d) ) );