0
$\begingroup$

I'm looking for a good Matlab package/library for B-Splines approximation. Ideally, it would take knots $t_1, \ldots , t_n$, and data points $g(t_1),\ldots , g(t_n)$, and Produce $$Vg :\,= \sum\limits_{j=1}^n B_i ^k (t) g_i \, , $$ where the $B_i ^k$'s are the B-spline basis of order $k$ with respect to the given knots-set.

Remarks:

  • Really, I just need the cubic B-Splines, and "simple" knots, i.e., without repeating a note twice.

  • I follow the definitions in pp. 160 of C. De Boor, A Practical Guide to Splines, 1978.

$\endgroup$

1 Answer 1

2
$\begingroup$

You may use Curve fitting toolbox which is provided by MATLAB. The function you need is spcol.

$\endgroup$
2
  • $\begingroup$ Thanks! I'm not entirely sure how to use spcol in this context. The example in the documentation is very much in an ODE prespective, which is not familiar to me. Do you know of any simple example ? $\endgroup$
    – Amir Sagiv
    Commented Jul 30, 2017 at 18:49
  • 1
    $\begingroup$ If you just want to create B-Splines, nurbs toolbox could be a better choice. $\endgroup$
    – Xi Zou
    Commented Jul 31, 2017 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.