Code covered by the BSD License  

Highlights from
2D Cubic Beizer Curve

image thumbnail
from 2D Cubic Beizer Curve by Dr. Murtaza Khan
Evaluate and plot 2D cubic bezier curve for given four control points.

TestCubicBezier.m

Px=[12 17 16 15];	% Px contains x-coordinates of control points [Px0,Px1,Px2,Px3]
Py=[15 30 0 15];	% Py contains y-coordinates of control points [Py0,Py1,Py2,Py3]
n=100;
feval('Funct_Bezier',Px,Py,n); 

% % % --------------------------------
% % % Author: Dr. Murtaza Khan
% % % Email : drkhanmurtaza@gmail.com
% % % --------------------------------

Contact us at files@mathworks.com