该拟合曲线可以用matlab的lsqcurvefit()函数命令拟合得到。其过程如下:
x=[1.0 1.4 1.8 2.2];
y=[0.931 0.473 0.297 0.22];
func=inline('1./(a(1)+a(2)*x)','a','x');
b=[0.84913 0.93399];
a=lsqcurvefit(func,b,x,y)
disp(['a=',num2str(a(1)),' b=',num2str(a(2))])
运行结果
a=-1.6854 b=2.7574
![](https://iknow-pic.cdn.bcebos.com/9e3df8dcd100baa16d346b3d4c10b912c8fc2e1f?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)