About "eigs" function

조회 수: 4 (최근 30일)
Achraf EL OMARI
Achraf EL OMARI 2020년 7월 2일
편집: Achraf EL OMARI 2020년 7월 4일
Hello every one,
I want to run an LLE code when I need to use "eigs" function to solve an eigenproblem.
This is the syntax that I use in Matlab Online :
[YT, ~] = eigs(M, d+1, 0, 'Display', 0, 'StartVector', ones(size(M, 1), 1));
The problem is that I obtain a new result each time the code is executed.
If you can help me to overcome this problem ?
Best regards,

답변 (1개)

Christine Tobler
Christine Tobler 2020년 7월 4일
This was the case for old EIGS, it would use some random restart vectors that changed on every run. In the version of EIGS that supports the 'Display' and 'StartVector' options, the output should always stay the same.
If you're able to, could you share the matrix M and input d?
  댓글 수: 1
Achraf EL OMARI
Achraf EL OMARI 2020년 7월 4일
편집: Achraf EL OMARI 2020년 7월 4일
Hello Christine Tobler,
First of all, thank you very much for your answer.
You can find my matrix in the attached file "M.mat".
d=2;
My matrix M is a sparse matrix of size 2000 x 2000, real and symmetric.
Best regards,

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

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by