Question: Bezier Curve Q 1 . Plot the Bezier curve using the following control points ( 2 , 0 ) , ( 4 , 3 )

Bezier Curve
Q1. Plot the Bezier curve using the following control points
(2,0),(4,3),(5,2),(4,-2),(5,-3) and (6,-2)
MATLAB program
p=[20;43;52;4-2;5-3;6-2]; / Representing the above control points in matrix form syms u
b= BernsteinMatrix 5,u?? Gives the equation for 5 degree bazier curve
Beziercurve=simplify(:B**p?? Gives two separate equation for x and y
coordinates by substituting the control points
Plotting Bezier curve
fplot(Beziercurve(1),Beziercurve(2),[0,1])
hold on
scatter(p(:,1),p(:,2),'filled')
hold off
Plot:
Bezier Curve Q 1 . Plot the Bezier curve using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!