Borrar filtros
Borrar filtros

error message about "eigs" function

2 visualizaciones (últimos 30 días)
Chong Hou
Chong Hou el 3 de Feb. de 2012
Editada: Matt J el 27 de Sept. de 2013
I use function eigs(A,1,'sm') in my code, and when I run it, sometimes there is the error message saying "Error using eigs (line 254) Error with ARPACK routine dnaupd: info = -9". What does that mean? Thanks!
The matrix A is a real symmetric matrix in my code, though sometimes it might be singular.

Respuestas (1)

Walter Roberson
Walter Roberson el 3 de Feb. de 2012
c INFO Integer. (INPUT/OUTPUT)
c Error flag on output.
c = -9: Starting vector is zero.
This could occur if you supplied an options structure to eigs() and the v0 (starting column vector) field was all zero.
  2 comentarios
Chong Hou
Chong Hou el 3 de Feb. de 2012
Thank you Walter! Could you be more specific? Does the "v0 field" mean the first column of my matrix A?
Walter Roberson
Walter Roberson el 3 de Feb. de 2012
No, the v0 field is a structure field named v0.
If you look at the possible syntaxes for eigs(), it lists,
eigs(A,K,sigma,opts)
eigs(A,B,k,sigma,opts)
In those situations, opts is a structure, and the v0 field would be a field in that structure.

Iniciar sesión para comentar.

Categorías

Más información sobre Operating on Diagonal Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by