Library function log10 not found when using fit
古いコメントを表示
I have been trying to fit some data using a lograthimic fit with the following command, where ind_array and sample_array are my x and y data respectively:
expo_curve=fit(ind_array,sample_array,'log10');
However, I keep getting the following error:
Library function log10 not found.
The weird thing is I was using this exact code like 3 weeks ago and was able to generate the fit. So I am unsure what is going wrong, and the API says that 'log10' is a valid fittype for the fit command.
Any help would be appreciated,
Thank you,
Sean
採用された回答
その他の回答 (1 件)
Kunal Kandhari
2024 年 5 月 22 日
Since it worked previously, you may have a path problem.
Run these from a script or your Command Window:
restoredefaultpath
rehash toolboxcache
rehash path
savepath
Then run your code again.
2 件のコメント
Sean Morgan
2024 年 5 月 23 日
編集済み: Sean Morgan
2024 年 5 月 23 日
John D'Errico
2024 年 5 月 23 日
No. That would never be a path issue.
カテゴリ
ヘルプ センター および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
