Getting the values from the curve fitted model

3 vues (au cours des 30 derniers jours)
Hirak Basumatary
Hirak Basumatary le 5 Août 2018
Commenté : Hirak Basumatary le 6 Août 2018
Is there a way i can get the new values of the datas ( x and y) from the curve fitted model?
  1 commentaire
jonas
jonas le 5 Août 2018
Modifié(e) : jonas le 5 Août 2018
How did you fit your model? fit? polyfit?

Connectez-vous pour commenter.

Réponse acceptée

jonas
jonas le 5 Août 2018
If you used fit:
p=fit(...) %your model
y=p(x) %evaluate your model at x
Similarily, if you used polyfit:
p=polyfit(...) %your model
y=polyval(p,x) %evaluate your model at x

Plus de réponses (0)

Catégories

En savoir plus sur Linear and Nonlinear Regression dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by