Error in nlinfit function
显示 更早的评论
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-11
Are you able to post your code and a small subset of data that will allow us to generate this error for ourselves?
Peyman Ghasemi
2016-2-12
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.
Peyman Ghasemi
2016-2-14
采纳的回答
更多回答(1 个)
Peyman Ghasemi
2016-5-26
编辑:Peyman Ghasemi
2016-5-26
1 个投票
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?
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Computations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!