fit

来源:互联网 发布:文书润色 知乎 编辑:程序博客网 时间:2024/06/10 04:44

>> X
X =
    1.0000    2.5000    5.0000    6.5000    7.5000    9.5000   10.0000
>> Y
Y =
    0.2000    0.2500    0.4000    0.6000    1.0000    2.0000    3.0000


fittedmodel2 =

    Linear model Poly3:

      fittedmodel2(x) = p1*x^3 + p2*x^2 + p3*x + p4

    Coefficients (with 95% confidence bounds):

      p1 =    0.008966  (-0.006112, 0.02404)

      p2 =    -0.09535  (-0.3518, 0.1611)

      p3 =       0.346  (-0.8869, 1.579)

      p4 =    -0.09209  (-1.576, 1.391)

0 0
原创粉丝点击