BASISFUN: Compute B-Spline Basis Functions 

Calling Sequence:

  N = basisfun(iv,uv,p,U)

 INPUT:

   iv - knot span  ( from FindSpan() )
   uv - parametric point
   p - spline degree
   U - knot sequence

 OUTPUT:

   N - Basis functions vector(numel(uv)*(p+1))

 Algorithm A2.2 from 'The NURBS BOOK' pg70.

Package: nurbs