Why does the cscvn function of matlab have 4*2*(n-1) coefficients?

1 visualización (últimos 30 días)
Ashkan Rigi
Ashkan Rigi el 6 de Nov. de 2021
Editada: David Goodmanson el 9 de Nov. de 2021
Hello every body. I can not understand why the function of cscvn of matlab have 4*2*(n-1) coefficients. n is the number of x valeus.

Respuestas (1)

David Goodmanson
David Goodmanson el 9 de Nov. de 2021
Editada: David Goodmanson el 9 de Nov. de 2021
Hello Ashkan,
factor of (n-1) because n points --> (n-1) intervals, and the polynomials are defined on the intervals
factor of 4 because each polynomial is a cubic and has four coefficients
factor of 2 because each of x and y are defined separately and implicitly by a parameter that is related to arc length

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by