Write a MATLAB CODE to draw a cubic Bezier curve using DeCasteljau algorithm. The input to the program should be four 2D (x,y) control points P0, P1, P2 and P4.
Write a MATLAB CODE that displays a non-uniform, non-rational B-spline, given as input a knot sequence and control points. Provide a user-controllable option to calculate the Bi,4(t) using the recurrence relations given in handout.