Linear fit 'Equation is badly conditioned. Remove repeated data points or try centering and scaling'

7 visualizaciones (últimos 30 días)
Dear all,
Here is my data,
735637 -0.0535
735677 0.427
735701 0.304
735709 0.288
Where x is column 1 and y is column 2. When I fit with [fit,gof] = fit(x,y,'poly1'), it I got the following warnings:
Warning: Equation is badly conditioned. Remove repeated data points or try centering and scaling.
In curvefit.attention.Warning/throw (line 30)
In fit>iLinearFit (line 672)
In fit>iFit (line 383)
In fit (line 108)
In plotRbLSWISeries (line 6)|
And if I run [fit,gof] = fit(x,y,'poly1') twice, it tell me:
K>> [fit,gof] = fit(x,y,'poly1')
Error using cfit/subsref
Too many output arguments.
What's the problem? and how to solve this problem? thank you!

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!