早教吧作业答案频道 -->其他-->
请教matlab高手,线性拟合t=[0 1 2 3 8 10]c=[0 2 3.3 4.6 6.2 6.3]ln(Cs-c)=-Kla*t+b拟合后,把代码发过来,
题目详情
请教matlab高手,线性拟合
t=[0 1 2 3 8 10]
c=[0 2 3.3 4.6 6.2 6.3]
ln(Cs-c)=-Kla*t+b
拟合后,把代码发过来,
t=[0 1 2 3 8 10]
c=[0 2 3.3 4.6 6.2 6.3]
ln(Cs-c)=-Kla*t+b
拟合后,把代码发过来,
▼优质解答
答案和解析
t=[0 1 2 3 8 10]';
c=[0 2 3.3 4.6 6.2 6.3]';
ft_ = fittype('Cs-exp(-k*t+b)',...
'dependent',{'c'},'independent',{'t'},...
'coefficients',{'Cs', 'k', 'b'});
st=[2 1 1]
[curve, goodness]= fit(t,c,ft_,'Startpoint',st)
figure
plot(curve,'predobs',0.95);
hold on,plot(t,c,'b*')
---------
curve =
General model:
curve(t) = Cs-exp(-k*t+b)
Coefficients (with 95% confidence bounds):
Cs = 6.488 (6.059, 6.917)
k = 0.383 (0.302, 0.4639)
b = 1.876 (1.792, 1.96)
goodness =
sse: 0.0617
rsquare: 0.9980
dfe: 3
adjrsquare: 0.9966
rmse: 0.1434
c=[0 2 3.3 4.6 6.2 6.3]';
ft_ = fittype('Cs-exp(-k*t+b)',...
'dependent',{'c'},'independent',{'t'},...
'coefficients',{'Cs', 'k', 'b'});
st=[2 1 1]
[curve, goodness]= fit(t,c,ft_,'Startpoint',st)
figure
plot(curve,'predobs',0.95);
hold on,plot(t,c,'b*')
---------
curve =
General model:
curve(t) = Cs-exp(-k*t+b)
Coefficients (with 95% confidence bounds):
Cs = 6.488 (6.059, 6.917)
k = 0.383 (0.302, 0.4639)
b = 1.876 (1.792, 1.96)
goodness =
sse: 0.0617
rsquare: 0.9980
dfe: 3
adjrsquare: 0.9966
rmse: 0.1434
看了 请教matlab高手,线性拟...的网友还看了以下:
如图,一次函数的图像与反比例函数的图像交于A(-3,1)B(m,3)连接AO、BO,求△ABO的面 2020-04-08 …
如图,点A(m,m+1),B(m+3,m-1)都在反比例函数y=x分之k的图像上.(1)会的(2) 2020-04-08 …
已知两点A(-1,2)B(m.3)一直师叔m属于((-根号3)/3-1,(根号3)-1)求直线AB 2020-04-11 …
已知直线y=kx-2与抛物线y=ax^2+bx+c的图象交于点A(-1,-3)于点B(m,3),且 2020-05-16 …
书序让你已知抛物线y=(m-3)x^2-mx+m与x轴有两个交点a、b,且m为奇数,若抛物线上有一 2020-06-05 …
已知{(x,y)I(m+3)x+y=3m+4}∩{(x,y)I7x+(5-m)y-8=0}=∅求直 2020-06-12 …
如图,点A(m,m+1),B(m+3,m-1)都在反比例函数y=k/x的图像上如果M为x轴上一点, 2020-06-29 …
1.若(a^n*b^m*b)³=a^9*b^15,求2^m+n的值.2.计算;a^n-5(a^n+1 2020-11-01 …
1.设非零向量a,b,c满足\a\=\b\=\c\,a+b=c,则=()A.150B.120C.60 2020-12-07 …
已知动直线l:(m+3)x-(m+2)y+m=0,圆C:(x-3)^2+(y-4)^2=9求证:无论 2021-01-12 …