弱弱问一句:谁能帮我把这几个数据弄成曲线拟合呀??
x1=[-21.807,-20.838,-19.1,-17.8,-16.86,-16.525,-16.067,-14.8];y1=[1.79e-3,6.14e-4,2.888e-5,9.732e-7,2.286e-8,4.574e-9,3.6558e-10,3.146e-14];
plot(x1,log10(y1),'s-')
x2=[-22.84,-19.83,-18.86,-15.85,-15.6,-14.39,-13.81,-13.3,-12.84,-12.44];
y2=[9.522e-3,1.815e-3,7.06e-4,6.56e-6,9.5537e-7,1.2855e-7,1.5872e-8,1.7972e-9,1.874e-10,1.8129e-11];
plot(x1,log10(y2),'*-');
怎么让这个出来的这两条曲线不是按每个点连起来的曲线,
而是取这些点的相近值,而且最后得出的拟合线是一条直线.
小女子感激不尽~~