bernsteinMatrix
Bernstein matrix
📝Syntax
B = bernsteinMatrix(n, t)
📥Input Arguments
Parameter Description
n nonnegative integer: Approximation order.
t number or vector: Evaluation point.
📤Output Arguments
Parameter Description
B Bernstein Matrix: length(t) - by - n+1 matrix.
📄Description

B = bernsteinMatrix(n, t) constructs a Bernstein matrix B with dimensions length(t) - by - (n+1), where t is a vector.

The Bernstein matrix is also referred to as the Bezier matrix.

This function can be utilized to calculate the points of a Bezier curve.

💡Examples
t = 0:1/100:1;
B = bernsteinMatrix(3, t);
P = [0 0 0; 1 2 1; 1 -2 3; 5 2 4];
bezierCurve = B * P;
plot3(bezierCurve(:,1), bezierCurve(:,2), bezierCurve(:,3))
Example illustration
🕔Version History
Version Description
1.5.0 initial version
Edit this page on GitHub