polyfit and polyval problem
古いコメントを表示
Hi there,
I am trying to plot a line using the ployfit and command
x and y are the coordinates in attached xy the plot.
I can't plot a polyfit curve that reproduces the original.
I alway came up with something different from the original curve.
8 件のコメント
Star Strider
2019 年 12 月 5 日
Perhaps if you post your code, we can help you find and solve the problem.
Paul Rogers
2019 年 12 月 5 日
Paul Rogers
2019 年 12 月 5 日
Guillaume
2019 年 12 月 5 日
Polynomial fitting is not magical. If the function you want to fit is nothing like a polynomial, as you have here, there's no way you'll find a good fit.
You'll have to try another kind of fit as dpb said and to know what that fit is you need to know some details about what your data represent.
Image Analyst
2019 年 12 月 5 日
Can you attach a screenshot? I can't open the .fig file directly from Firefox - it throws an error message when trying to launch MATLAB to display the figure even though MATLAB is already running.
dpb
2019 年 12 月 6 日
Here ya' go, IA...

dpb
2019 年 12 月 6 日
"I got the y from a more complex equation, ..."
Well, there's the place to start. What makes sense to approximate whatever that is/was.
What restrictions are on the approximation used, if any?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



