I have 2 data sets: x1,y1 & x2,y2 (different lengths).
% k is a constant
I want to fit:
f1 = @ (p,x1) p(1)./sqrt((x1-k).^2+p(2)^2)+p(3);f2 =@ (p, x2) p(4)./sqrt((x2-k).^2+p(5)^2)+p(3);
Both data sets should be fit to the same p(3). I would like the fitting to return [p(1) p(2) p(3) p(4) p(5)]
Can I do this with lsqcurvefit?
I hope this makes sense,
Luke
Best Answer