Info

この質問は閉じられています。 編集または回答するには再度開いてください。

trying to fit x1 and y1 and in result want fitted value but for that this error is coming ? How can I improve my result?

1 回表示 (過去 30 日間)
RS
RS 2013 年 8 月 25 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
In polyfit at 76
Warning: Polynomial is badly conditioned. Add points with distinct X values, reduce
the degree of the polynomial, or try centering and scaling as described in HELP
POLYFIT.

回答 (1 件)

Image Analyst
Image Analyst 2013 年 8 月 25 日
編集済み: Image Analyst 2013 年 8 月 25 日
When you get that error, you must use the S and mu arguments. See the help for polyfit, as the error message directed you to.
  3 件のコメント
Image Analyst
Image Analyst 2013 年 8 月 25 日
They do centering and scaling so your numbers don't have such a huge range, which limits your accuracy.
RS
RS 2013 年 8 月 27 日
again same type of error coming how can I make good results warning(message('MATLAB:polyfit:RepeatedPoints'));
In polyfit at 74 Warning: Polynomial is badly conditioned. Add points with distinct X values or reduce the degree of the polynomial.
I am using this
[p S mu]= polyfit(x1(1:xxx),y2,3);

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by