作业帮 > 综合 > 作业

跪求matlab拟合高斯函数

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/29 20:34:54
跪求matlab拟合高斯函数
x=(2001 2002 2003 2004 2005)
y=(5.2 12.53 7.31 0.6 6.08)
以上面的数据为例写出matlab程序
跪求matlab拟合高斯函数
我可以的 
General model Gauss1:
       f(x) =  a1*exp(-((x-b1)/c1)^2)
Coefficients (with 95% confidence bounds):
       a1 =       12.62  (-5.633, 30.88)
       b1 =        2002  (2001, 2004)
       c1 =       1.192  (-0.816, 3.2)
Goodness of fit:
  SSE: 36.72
  R-square: 0.5009
  Adjusted R-square: 0.001709
  RMSE: 4.285