What's the Matlab way to draw a Bezier curve ? Do you have to prgoram it yourself ?
I am not looking for a user made routine, but am asking if Matlab offers a standard way to draw them.
With the Curve Fitting Toolbox, Matlab supports B-splines, which are a generalization of Bézier curves. A rational B-spline with no internal knots is a Bézier spline.
For example
p = spmak([0 0 0 1 1 1],[1 0;0 1]);
fnplt(p)
would plot a Bézier curve with control points at (0,0),(1,0),(1,1),(0,1).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With