Error in nlinfit function
17 ビュー (過去 30 日間)
古いコメントを表示
I want to execute a code to calculate Largest Lyapunov Exponent in time series. There is a "nlinfit" function in my m-file, but the result is this error:
Error using nlinfit (line 239)
No usable observations after removing NaNs in Y and
in the result of evaluating MODELFUN at the initial
value BETA0.
Error in lyaprosen (line 377)
beta =
nlinfit(K(1:Tl),L(1:Tl),@nonlin1,[betar;randn(1,1)]);
I searched this error, but there was not any results. Can anyone help me to solve this issue?
Thanks; Peyman
4 件のコメント
the cyclist
2016 年 2 月 14 日
I was not able to run your code. I get the error
dist is not included in your installed products. These products offer 'dist':
Neural Network Toolbox
Error in lyaprosen (line 106)
Dmm=dist(EEMmm(:,1:k)');
I may still be able to help. If you halt your code just before the call to nlinfit [line 377 of lyaprosen], and save those variables into a *.mat file, then you could upload the file here and I could just load the variables and run the command.
採用された回答
the cyclist
2016 年 2 月 15 日
The immediate cause of the problem with nlinfit() is that your variables K and L are empty arrays. They are empty because Tl is an empty array as well.
You can trace this back to the fact that Ldiff is all NaNs, which is due to Lm being NaN, and so on. (That's as far as I went.)
0 件のコメント
その他の回答 (1 件)
Peyman Ghasemi
2016 年 5 月 26 日
編集済み: Peyman Ghasemi
2016 年 5 月 26 日
1 件のコメント
Aaron Best
2019 年 6 月 3 日
Hi Peyman,
I am running into the same error could you please go into a little more detial about how you solved this problem?
参考
カテゴリ
Help Center および File Exchange で Matrix Computations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!