Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Français


bernstein

compute the n-order Bernstein matrix

Syntax

b = bernstein(n, t)

Arguments

n

a positive integer, the order.

t

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]

b

a length(t)-by-(n+1) matrix of doubles.

Description

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.

Examples

Compute the matrix of third order Bernstein polynomials

t = linspace(0, 1, 5);
b = bernstein(3, t)

nb = 4;
b = bernstein(2, nb)

See also

  • bezier — compute the points for the bezier curve

History

VersionDescription
2024.1.0 Introduction in Scilab.
Report an issue
<< &, && Fonctions Elémentaires extraction >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jun 17 17:52:27 CEST 2024