# B-Splines Matlab Package

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.

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

• 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 ? – Amir Sagiv Jul 30 '17 at 18:49
• If you just want to create B-Splines, nurbs toolbox could be a better choice. – Xi Zou Jul 31 '17 at 10:50