sometimes I get a warning : rank deficient

2 visualizaciones (últimos 30 días)
William Campbell
William Campbell el 1 de Mzo. de 2020
Comentada: William Campbell el 2 de Mzo. de 2020
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 ?
  1 comentario
William Campbell
William Campbell el 2 de Mzo. de 2020
Thanks for your fast response - it looks like I had updated my x variable further into my script and created a conflict. All sorted now. Thanks again.

Iniciar sesión para comentar.

Respuestas (1)

Matt J
Matt J el 2 de Mzo. de 2020
Editada: Matt J el 2 de Mzo. de 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) ) );

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by