Matlab does not show the curve equation in basic fitting
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
I have a code which I plot some datas then I want to get the equation of the plotted curve so I used basic fitting , spline interpolant is fit with plotted curve but when I check the ((show equations)) it just write the ((cubic spline interpolant)) in the figure window and didn't show the equation of the fitting curve
1 件のコメント
dpb
2021 年 2 月 15 日
Because there is no simple expression like a quadratic for the spline interpolant; it's a series of cubics between each breakpoint.
回答 (1 件)
John D'Errico
2021 年 2 月 15 日
You misunderstand splines. A spline does not have a simple equation you can write down. And while in theory, you could write down SOMETHING, it would be a terribly dense, lengthy thing. And unless you understand splines sufficiently well, it might not make a lot of sense to you anyway.
You can use a spline to interpolate, approximate, and predict values. However, there is no simple equation.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interpolation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!