How to get the R2 value of fit?
102 ビュー (過去 30 日間)
古いコメントを表示
In the code below, how to output the R2 value of the fitted coefficients?
ft = fittype('b*x^2+c*x+a');
load enso
fit(month,pressure,ft,'StartPoint',[1,3,5])
0 件のコメント
採用された回答
Stephan
2022 年 11 月 30 日
ft = fittype('b*x^2+c*x+a');
load enso
[curve, gof]=fit(month,pressure,ft,'StartPoint',[1,3,5])
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!