x=[0,0.5,1.0,1.5,2.0,2.5];
y1f=[0.0020,0.2015,0.4005,0.6000,0.7995,1.0000];
y1b=[0.0030,0.2020,0.4020,0.6010,0.8005,1.0000];
y2f=[0.0025,0.2020,0.4010,0.6000,0.7995,0.9995];
y2b=[0.0035,0.2030,0.4020,0.6015,0.8005,0.9995];
y3f=[0.0035,0.2020,0.4010,0.6000,0.7995,0.9990];
y3b=[0.0040,0.2030,0.4020,0.6010,0.8005,0.9990];
legend("原始数据",strcat('端点直线法k=',num2str(k),';b=',num2str(b)),strcat('最小而乘法k=',num2str(k),';b=',num2str(b)))