Bezier Curve Function
版本 1.0.0.0 (1.4 KB) 作者:
Prakash Manandhar
Vectorized function to calculate Bezier Curve
This function constructs a Bezier curve from given control points. P is a vector of control points. N is the number of points to calculate.
Example:
P = [0 0; 1 1; 2 5; 5 -1];
x = (0:0.0001:5);
y = BezierCurve(length(x), P);
plot(x, y, P(:, 1), P(:, 2), 'x-', 'LineWidth', 2); set(gca, 'FontSize', 16)
引用格式
Prakash Manandhar (2024). Bezier Curve Function (https://www.mathworks.com/matlabcentral/fileexchange/34902-bezier-curve-function), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2010b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Interpolation 的更多信息
标签
致谢
参考作品: Bezier Curve Plotter
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |