Rewrite on MATLAB the procedure Spline1 so that Binary Search is employed to compute the material. Test the revise code. A binary search is similar to the bisection method in that we choose:
tk with k = (i + j)/2 or k( = i + j + 1)/2
and determine whether
x is in [t1, tk] or [tk, tj].