polyfit_roots

Similar to polyfit, but allows higher degrees by returning the roots of the polynomial.
533 download
Aggiornato 28 set 2011

Visualizza la licenza

POLYFIT_ROOTS Least-squares polynomial fit to data.
[R,K] = POLYFIT_ROOTS(X, Y, N, TOL) finds the roots R and constant K so that the polynomial P(s) = K*(s-R(1))*(s-R(2))* ... *(s-R(N)) is the best least-squares fit to the data Y at points X.

Argument TOL bounds the accuracy of the fit, and if ommited is taken to be 1e-14. A polynomial of degree n < N is returned if it fits the data with error less than TOL.

See polyfit_roots_drv.m for examples.

Cita come

Amit Hochman (2025). polyfit_roots (https://it.mathworks.com/matlabcentral/fileexchange/33042-polyfit_roots), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2011a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Polynomials in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.2.0.0

Added missing equation images to html

1.1.0.0

Added html examples file

1.0.0.0