Error message for the commands followed from example for exponential fit
1 回表示 (過去 30 日間)
古いコメントを表示
I used the the following example from MATLAB examples, but gives an error
x = (0:0.2:5)'; y = 2*exp(-0.2*x) + 0.1*randn(size(x)); f = fit(x,y,'exp1')
plot(f,x,y)
Undefined function 'fit' for input arguments of type 'double'
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 7 月 15 日
fit() requires that you have the Curvefitting Toolbox installed and licensed.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!