早教吧作业答案频道 -->其他-->
请教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高手,线性拟...的网友还看了以下:
1000/380/1.732/0.8=1.89A这个算式中1.732和0.8代表什么?它们是怎么来 2020-05-13 …
关于线性代数行列式的一道证明题!2 1 0 … 0 01 2 1 … 0 00 1 2 … 0 0 2020-05-16 …
matlab求解微分方程组dx/dt=-0.008u-0.018v-0.001wdy/dt=-0. 2020-05-16 …
y={f(0)=1,f(1)=2{f(n+1)=f(n)+f(n-1)n∈N+,求f(2)3,4, 2020-05-20 …
高等代数题:已知α1=(1,1,0,0),α2=(1,0,1,1),β1=(0,0,1,1),β2 2020-06-10 …
关于Matlabn=input('\n请输入分点数n:n=');x=-1:2/(n-1):1;fx= 2020-10-31 …
有关代数式的问题.1/π是不是代数式数学中代数式的定义是数与字母的乘积,那怎么样理解一个数或一个字母 2020-11-03 …
线性代数任意一个含零向量的向量组必为线性相关组.事实上,不妨设向量组为a1,a2,···am-1,a 2020-11-06 …
某行业由一个大厂商和5个小厂商组成,都生产同样产品.小厂商有相同的成本.大厂商和小厂商的成本函数分别 2020-11-30 …
关于绝对值的数学题我一下子找不到绝对值符号,用中括号代替一下当X=0时,[X-1]+3=[0-1]+ 2020-12-31 …