I want to write function that calculates Bezier curve in general. My code:
function b = bezier(pts) b = 0; for i = 0:length(pts)-1 b =@(t) b + pts(i+1,:)*