フィルターのクリア

How to get the R2 value of fit?

102 ビュー (過去 30 日間)
Jen W
Jen W 2022 年 11 月 30 日
回答済み: Stephan 2022 年 11 月 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])

採用された回答

Stephan
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 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by