Matlab does not show the curve equation in basic fitting

조회 수: 1 (최근 30일)
john white
john white 2021년 2월 15일
댓글: dpb 2021년 2월 15일
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
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
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.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by