error message about "eigs" function

조회 수: 8 (최근 30일)
Chong Hou
Chong Hou 2012년 2월 3일
편집: Matt J 2013년 9월 27일
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.

답변 (1개)

Walter Roberson
Walter Roberson 2012년 2월 3일
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
Chong Hou
Chong Hou 2012년 2월 3일
Thank you Walter! Could you be more specific? Does the "v0 field" mean the first column of my matrix A?
Walter Roberson
Walter Roberson 2012년 2월 3일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by