matlab曲线拟合求参数,需要程序
t=[1,2,3,4,5,6,7,8,9,10];y=[253.3,251.5,251.2,251,250.9,250.8,250.6,250.6,250.5,250.4...
t=[1,2,3,4,5,6,7,8,9,10];
y=[253.3,251.5,251.2,251,250.9,250.8,250.6,250.6,250.5,250.4];
拟合曲线方程为y=c0+c1exp(-t/a1)+c2exp(-t/a2),想求出参数c0,c1,c2,a1,a2,这5个参数值,且这些参数值没有初值,求助大家,帮下忙!谢谢 展开
y=[253.3,251.5,251.2,251,250.9,250.8,250.6,250.6,250.5,250.4];
拟合曲线方程为y=c0+c1exp(-t/a1)+c2exp(-t/a2),想求出参数c0,c1,c2,a1,a2,这5个参数值,且这些参数值没有初值,求助大家,帮下忙!谢谢 展开
展开全部
你在matlab下的commend window里输入cftool,然后在x data下选择t在y data下选择y。接着在右边的下拉框里选择custom equation,在custom equation下面输入c0+c1*exp(-x/a1)+c2*exp(-x/a2),然后它就输出结果了(cftool的左下边会出来结果)。我算的结果是a1=0.03832;a2=1.194;c0=250.6;c1=-0.928;c2=6.035;R方是0.9653. (你还可以在fit option里选择算法,推荐LM算法)。希望采纳哦!
Sievers分析仪
2024-10-13 广告
2024-10-13 广告
是的。传统上,对于符合要求的内毒素检测,最终用户必须从标准内毒素库存瓶中构建至少一式两份三点标准曲线;必须有重复的阴性控制;每个样品和PPC必须一式两份。有了Sievers Eclipse内毒素检测仪,这些步骤可以通过使用预嵌入的内毒素标准...
点击进入详情页
本回答由Sievers分析仪提供
展开全部
t=[1,2,3,4,5,6,7,8,9,10];
y=[253.3,251.5,251.2,251,250.9,250.8,250.6,250.6,250.5,250.4];
syms x
f=fittype('c0+c1*exp(-x/a1)+c2*exp(-x/a2)','independent','x','coefficients',{'c0','c1','c2','a1','a2'});
cfun=fit(t',y',f)
cfun =
General model:
cfun(x) = c0+c1*exp(-x/a1)+c2*exp(-x/a2)
Coefficients (with 95% confidence bounds):
c0 = 145.3 (-2.919e+05, 2.922e+05)
c1 = 659 (-1.055e+08, 1.055e+08)
c2 = -552.6 (-1.058e+08, 1.058e+08)
a1 = 42.66 (-7.557e+05, 7.558e+05)
a2 = 35.5 (-5.319e+05, 5.32e+05)
y=[253.3,251.5,251.2,251,250.9,250.8,250.6,250.6,250.5,250.4];
syms x
f=fittype('c0+c1*exp(-x/a1)+c2*exp(-x/a2)','independent','x','coefficients',{'c0','c1','c2','a1','a2'});
cfun=fit(t',y',f)
cfun =
General model:
cfun(x) = c0+c1*exp(-x/a1)+c2*exp(-x/a2)
Coefficients (with 95% confidence bounds):
c0 = 145.3 (-2.919e+05, 2.922e+05)
c1 = 659 (-1.055e+08, 1.055e+08)
c2 = -552.6 (-1.058e+08, 1.058e+08)
a1 = 42.66 (-7.557e+05, 7.558e+05)
a2 = 35.5 (-5.319e+05, 5.32e+05)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询