发布网友 发布时间:2022-05-15 09:07
共1个回答
热心网友 时间:2023-10-17 00:48
c=[14 18 22]';
v=[135 29 1.27]';%%c和v变成列向量即可
ft_ = fittype('A*exp(x*c)./c',...
'dependent',{'v'},'independent',{'c'},...
'coefficients',{'A','x'});
st=[0.0001 0.01];
[curve, goodness]= fit(c,v,ft_,'Startpoint',st)
figure
plot(curve,'predobs',0.95);
hold on,plot(c,v,'b*')