How to get the R2 value of fit?

108 次查看(过去 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 CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by