已知有两组数据 求大神帮忙拟合一下,​并得到拟合后的表达式​,感激不尽。

第一组:
x=0:0.01:1
第二组:
97.8940 98.1610 98.6451 99.9065 96.2278 93.1531 91.0931 89.1661 87.4631
86.0587 84.5407 84.2189 83.9035 83.5956 83.2959 83.0052 82.7237 82.4517
82.1890 81.9354 81.6904 81.4533 81.2232 80.9992 80.7802 80.5649 80.3523
80.1415 79.9316 79.7221 79.5132 79.3056 79.1008 78.9016 78.7120 78.5375
78.3854 78.2651 78.1879 78.1673 78.2188 78.3595 78.6080 78.9834 79.5045
80.1888 81.0511 82.1022 83.3474 84.7848 86.5823 88.4162 90.3807 92.4250
94.4850 96.4838 98.3334 99.9364 101.1897 101.9885 102.2315 100.4283 98.3295
95.9034 93.1407 90.0511 86.6688 83.0546 79.2973 75.5116 71.8327 68.4084
65.3888 62.9141 61.1029 60.0415 59.7757 60.3069 61.5918 63.5464 66.0542
68.9764 72.1637 75.4681 78.7534 81.9032 84.8262 87.4585 89.7634 91.7285
93.3615 94.6850 95.7322 96.5412 97.1516 97.6016 97.9257 98.1537 98.3104
98.4155 98.4843
想要得到函数表达式,感激不尽呀

Réponses (1)

0 votes

这个更好些,几个高斯函数叠加:
Root of Mean Square Error (RMSE): 0.371115227750478
Sum of Squared Residual: 13.9103777390972
Correlation Coef. (R): 0.999396214782545
R-Square: 0.99879279412168
Adjusted R-Square: 0.99876815726702
Determination Coef. (DC): 0.99879279412168
Chi-Square: 0.0776968352742658
F-Statistic: 6067.30021926387
Parameter        Best Estimate
----------        -------------
y0        104.797418330207
a1        -0.737691569939057
w1        -0.0549368563545455
xc1        0.0221917236677402
a2        -4.90721145830599
w2        0.126763582072617
xc2        0.762909655068178
a3        -2.79855570850433
w3        -0.115917671484647
xc3        0.58898309938821
a4        23.4485136913873
w4        -0.714317863936232
xc4        0.371764583039039

Tags

Community Treasure Hunt

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

Start Hunting!