发布网友 发布时间:2022-04-21 18:56
我来回答
共1个回答
热心网友 时间:2023-06-28 11:28
追答x=[-0.125,-0.300,-0.602,-0.824];y=[-0.223,-0.099,-0.052,-0.009];k=polyfit(x,y,1);A=k(1);B=k(2);scatter(x,y,'.');hold on;x1=-1:0.01:1;y1=A*x+B;plot(x,y);