nass-micro-station-measurem.../static-spindle/Macros_ttt_spindle/myfit2.m

6 lines
106 B
Mathematica
Raw Normal View History

2019-03-14 16:40:28 +01:00
function Y = myfit2(x,y)
A = [x ones(size(x))]\y;
a = A(1); b = A(2);
Y = y - (a*x + b);
end