compute the n-order Bernstein matrix
b = bernstein(n, t)
a positive integer, the order.
a scalar or row vector.
If t
is scalar, t
contains the number of points of Bezier curves. In this case,
the bernstein
function create linspace(0, 1, t)
vector. If t
is vector, this values must be in [0; 1]
a length(t)-by-(n+1) matrix of doubles.
This function returns a matrix b
containing the Bernstein polynomials
evaluated at the elements of t
This function is used to compute the points of Bezier curve. See bezier help page.
Compute the matrix of third order Bernstein polynomials
t = linspace(0, 1, 5); b = bernstein(3, t) | ![]() | ![]() |
Version | Description |
2024.1.0 | Introduction in Scilab. |