MATLAB: Fit with exp2 doesn’t working

curve fittingexp2fitlineMATLAB

Hi, I'm a student trying to use fit 'exp2' on a matlab data. My documents have amount of steps, discharges of a battery where a looping separate them in semicircles and applay the fit at every semi circle. But the answer of fit is a line. Bellow I show at the image. The spots are the data and the line is fit. How can I solve this? I try using another data but the same happens. Ty for your attention.

Best Answer

You can solve this problem turning all de values of X axis to zero.