extract control points of curve with spline
4 views (last 30 days)
Show older comments
Mehri Mehrnia on 18 Jul 2022
Commented: Mehri Mehrnia on 20 Jul 2022
I almost studied whole matlab help and mathwork posts about spline.
But, nobody wants to extract control points out of a given curve!!!
every body goes in opposit direction, they have the knots then they produce the curve but I want control points based on the curve?
John D'Errico on 18 Jul 2022
I want world peace. But that does not mean I can HAVE world peace. I want a Lamborghini for Xmas. Yeah, right. Not gonna happen either.
Matt J on 18 Jul 2022
But, nobody wants to extract minimum number of control points out of a given curve!!!
There is no minimum number unless the given curve is already a piecewise polynomial, in which case, the number of knots is known immediately from the given form of the piecewise polynomial.
If the given curve is not a piecewise polynomial, it can only be approximated by one. The accuracy of the approximation always improves with additional knots, so there is no "minimum" that can be defined.
Bruno Luong on 20 Jul 2022
Calm down, if you have 1D data, this FEX function provides to compule the spline with reduced knots to approximate the data.
There is no such thing as minimum since its always a compromise between approxmation error and number of knots as soon as you appriximate a function with non-zero fourth derivative (virtually every function infact)
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!