fitting a polynomial function to data points and ploting it
Mostrar comentarios más antiguos
Hi all
I want to fit a quadratic function to a data serie in MATLAB and calculate determination coefficient (R2) as well as quadratic equation.so desired outputs are as below: - scatter plot of data serie i.e. (x, y) - plot of quadratic fitting - quadratic equation - determination coefficient (R2) Could you please guide me. thanks
Respuesta aceptada
Más respuestas (1)
Pawel Blaszczyk
el 7 de Nov. de 2011
doc polyfit
doc polyval
I think this two function will be enoguh :)
Categorías
Más información sobre Get Started with Curve Fitting Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!