function [m,b,c]=curve(x,y)
% Performs least squares fit on the equation y=mx+b+c/x
% x and y are row vectors
% m and b and c are the scalar slope, intercept and curvature parameters.
[r,c]=size(x);
A=[x',ones(c,1),1./x'];
T=A\y';
m=T(1);
b=T(2);
c=T(3);



