Advanced fitting to analytical functions

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

 Accepted Answer

Iain
Iain on 9 Sep 2014
"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.

More Answers (0)

Categories

Asked:

on 9 Sep 2014

Commented:

on 9 Sep 2014

Community Treasure Hunt

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

Start Hunting!