Is there a more advanced version of polyfit, that also automatically fits to other non-polynomial functions (exp, log, trigonometric, non-integer powers) and combinations thereof?
e.g. if i had some (moderately) noisy data following a sqrt curve, this code would detect that and spit out an sqrt(x) type of formula

 Réponse acceptée

Iain
Iain le 9 Sep 2014

0 votes

"fit" will try to fit specified functions. - You'll need to play around with it.
There's a 3rd party thing called Eureqa that may be more suited to finding functions that closely represent your data, whatever it is.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by