如何把数据转化为拟合公式。

数据如下:
y=[2 4 6 8 10 12 14 16 18];
x=[14 18 22];
z=[0.05 0.04 0.02
0.42 0.3 0.2
1.4 1.0 0.6
3.4 2.4 1.5
16.7 4.7 3
11.6 8.2 5.2
18.4 10.4 8.2
27.4 13.0 12.2
36.1 19.4 17.4];

 采纳的回答

legedic
legedic 2022-11-19

0 个投票

z = exp(p1+p2/x+p3*ln(y))+p4*(p6*x+y)^p5;
均方差(RMSE):1.66738877239065
残差平方和(SSE):75.0650035939491
相关系数(R): 0.983524191848129
相关系数之平方(R^2): 0.967319835950516
确定系数(DC): 0.967095440098179
卡方系数(Chi-Square): 4.76388379968422
F统计(F-Statistic): 127.641883451163
参数 最佳估算
---------- -------------
p1 -6.27064555708836
p2 47.5475309120129
p3 2.22124201121814
p4 1.38296351632269E-15
p6 0.789570133707312
p5 10.1591915355862

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!