x=[50 150 250 350 450 550 650]
y=[0.658415842 0.193069307 0.080858086 0.044554455 0.01650165 0.00330033 0.00330033]
想要拟合成y=a*exp(b*x)的形式~
x=[50 150 250 350 450 550 650]';
y=[0.658415842 0.193069307 0.080858086 0.044554455 0.01650165 0.00330033 0.00330033]';
st_ = [7 -5.e-005 ];
ft_ = fittype('a*exp(b*x)',...
'dependent',{'y'},'independent',{'x'},...
'coefficients',{'a', 'b'});
cf_ = fit(x,y,ft_,'Startpoint',st_)
plot(cf_,'fit',0.95);hold on,plot(x,y,'*')
cf_ =
General model:
cf_(x) = a*exp(b*x)
Coefficients (with 95% confidence bounds):
a = 1.157 (1.03, 1.284)
b = -0.01137 (-0.01292, -0.009823)
本回答被提问者和网友采纳求MATLAB 拟合指数函数的代码~
x=[50 150 250 350 450 550 650]';y=[0.658415842 0.193069307 0.080858086 0.044554455 0.01650165 0.00330033 0.00330033]';st_ = [7 -5.e-005 ];ft_ = fittype('a*exp(b*x)',...'dependent',{'y'},'independent',{'x'},...'coefficients',{'a', 'b'});cf_ = fit...
求matlab高手帮忙编写一个函数拟合程序。估计可以得到一个幂函数或者...
【拟合方式一:指数拟合】General model Power2: f(x) = a*x^b+cCoefficients (with 95% confidence bounds): a = -44.95 (-570, 480.1) b = -0.02049 (-0.297, 0.2561) c = 40.3 (-490, 570.6)Goodness of fit: SSE: 0.1527 R-square: 0....
matlab指数函数拟合
式中a=0.06154920769, b=-3.18125203, c=7.822374803 拟合度0.9725(相关系数)
matlab对指数函数的拟合
clear;X=[0.490667 0.955333 1.544 1.940667 2.48 3.026667 3.966667 4.453333 5.073333 6.033333 7.04]Y=[253.3333 381 450 503.6667 532 520 489 481.3333 459 438.3333 422]myfun=inline('A(1)*exp(A(2)*x)+A(3)*exp(A(4)*x)','A','x')A = nlinfit(X,Y,myfun,...
谁能告诉我matlab如何拟合指数曲线啊
1 多项式函数拟合:a=polyfit(xdata,ydata,n)其中n表示多项式的最高阶数,xdata,ydata为将要拟合的数据,它是用数组的方式输入.输出参数a为拟合多项式 的系数多项式在x处的值y可用下面程序计算.y=polyval(a,x)2 一般的曲线拟合:p=curvefit(‘Fun’,p0,xdata,ydata)其中Fun表示函数Fun(p,...
...y=[12,15,50,400,900] 如何用matlab 拟合成指数函数?谢谢...
0.328 (-0.5064, 1.163)c = 9.119 (5.879, 12.36)d = 4.534 (4.215, 4.854)Goodness of fit:SSE: 0.7834 R-square: 1 Adjusted R-square: 1 RMSE: 0.8851 拟合成指数函数为 f(x) = 18.73 *exp(0.328*x) + 9.119*exp(4.534*x)...
matlab拟合指数函数y=a(exp(b\/x))
x1=[1.1,1.15,1.2,1.25,1.3,1.35,1.4,1.45,1.5];y1=[5.9,5.1,4.75,4.6,4.55,4.5,4.45,4.43,4.5];eq=inline('a(1)*(exp(a(2).\/x))','a','x');a=nlinfit(x1,y1,eq,[0.1 1])x2=1.1:0.001:1.5;plot(x1,y1,'*',x2,a(1)*(exp(a(2)...
matlab拟合指数函数
myfunc=inline('beta(1)+beta(2)*exp(beta(4)*x)+beta(3)*exp(-beta(4)*x)','beta','x');beta=nlinfit(x,y,myfunc,[0.5 0.5 0.5 0.5]);a=beta(1),k1=beta(2),k2=beta(3),m=beta(4)xx=min(x):max(x);yy=a+k1*exp(m*xx)+k2*exp(-m*xx);plot(x,y,'o',...
怎么用matlab做指数函数曲线拟合并求参数,请求高人帮忙。
这个建议你使用cftool进行拟合 General model:f(x) = a*exp(m*x)-a*exp(n*x)Coefficients (with 95% confidence bounds):a = 114.4 (105.1, 123.8)m = -0.1855 (-0.2039, -0.1671)n = -2.008 (-2.325, -1.691)...
matlab拟合函数?
第一步,自定义Malthus模型函数(指数函数),如 func=@(k,t)N0*exp(D*(t-t0))这里,N0=60.2;t0=1954;第二步,利用1954-2005年的数据,分别使用lsqcurvefit函数,求出系数D。即 [D,resnorm,residual,exitflag]=lsqcurvefit(func,a0,t,N);第三步,计算拟合值,即 x1=func(D,t);第四步,...