What does this error mean?
1 回表示 (過去 30 日間)
古いコメントを表示
Rebekka Klara Gasser
2015 年 10 月 7 日
コメント済み: Rebekka Klara Gasser
2015 年 10 月 7 日
I get an error when calling the eig() function.
First I thought my matrix is somehow 'bad' for computing the eigenvalues.
But even if I just type
eig(eye(4))
I get the following error:
"Subscript indices must either be real positive integers or logicals."
0 件のコメント
採用された回答
Titus Edelhofer
2015 年 10 月 7 日
Hi,
this means, that using eye(4) is not valid for indexing (which is true, since it contains zeros). This implies, that you have a variable named eig, that shadows the function.
whos eig
probably tells you that eig is a variable. Remove it
clear eig
and then eig(eyes(4)) should do what you expected.
Titus
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!