k=-19.252747
slope=-19.252747
-->-19.252747--19.252747
ans =
0.
-->k-slope
ans =
2.132D-14
So, what is the difference?
Note:
k and slope calculated by;
bi=[0.01,0.02,0.03,0.04,0.05,0.06;
-0.19,-0.39,-0.57,-0.77,-0.96,-1.16]
k=bi(2,:)/bi(1,:)
[m,n]=reglin(bi(1,:),bi(2,:));
fity=m*bi(1,:)+n;
slope=tan(atan(fity/bi(1,:)))