x,y如图片上显示,用e指数拟合,求y随x的变化关系,画出原数据散点图和拟合曲线图.matlab程序是什么x=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,
来源:学生作业学帮网 编辑:学帮网 时间:2024/05/07 13:18:14
x,y如图片上显示,用e指数拟合,求y随x的变化关系,画出原数据散点图和拟合曲线图.matlab程序是什么
x=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112];
y=[82,6082,5966,1005,879,397,446,282,496,211,103,145,226,339,648,62,49,77,10,133,2279,7105,24416,40868,27120,37130,108961,161235,213826,293258,237517,247004,207884,232531,145405,106058,78244,27551,104,261,5150,18954,14314,8978,5831,2973,2523,1071,619,495,6,0,0,85,444,181,25,46,322,155,363,98,43,102,58,29,6,0,0,0,0,0,0,0,81,69,12,33,62,78,34,167,230,283,394,735,837,1552,2332,1820,13,0,1397,31376,58926,55349,45309,29259,41348,37837,48518,43995,7148,37,59,4257,14339,11994,1139,739,2655,1722];
General model Gauss4:
f(x) =
a1*exp(-((x-b1)/c1)^2) + a2*exp(-((x-b2)/c2)^2) +
a3*exp(-((x-b3)/c3)^2) + a4*exp(-((x-b4)/c4)^2)
where x is normalized by mean 56.5 and std 32.48
Coefficients (with 95% confidence bounds):
a1 = 1.782e+005 (1.017e+005, 2.547e+005)
b1 = -0.8246 (-0.8422, -0.8071)
c1 = 0.06889 (0.04866, 0.08913)
a2 = 1.578e+005 (1.004e+005, 2.153e+005)
b2 = -0.7026 (-0.7283, -0.6768)
c2 = 0.08578 (0.05463, 0.1169)
a3 = 6.616e+004 (-5194, 1.375e+005)
b3 = -0.8067 (-0.8735, -0.7399)
c3 = 0.196 (0.1253, 0.2668)
a4 = 5.019e+004 (4.148e+004, 5.889e+004)
b4 = 1.275 (1.254, 1.297)
c4 = 0.1508 (0.1206, 0.181)
Goodness of fit:
SSE: 7.878e+009
R-square: 0.9793
Adjusted R-square: 0.977
RMSE: 8876