Theoretical curve fitting in experimental data

2 views (last 30 days)
Dear sir I have some Experimental data Say x= 1 2 5 6 etc and corresponding to each of x, the values of y are 8 9 2 1. Now i want to fit an equation y= A +B*[Log(x)/x^n] + sin(x)+ erf(x) etc So how fit this equation in experimental graph,to find out the fitting Parameters A, B and n, for best fitting , please explain in detailed, because i am a learner.
Thanks

Accepted Answer

the cyclist
the cyclist on 28 Jul 2011
Probably the best tool in MATLAB to do this is the function nlinfit() in the Statistics Toolbox.

More Answers (1)

Walter Roberson
Walter Roberson on 13 Aug 2015
The Curve Fitting Toolbox also has fittype() for creating non-linear models; you would use fit() to do the fitting.

Tags

Products

Community Treasure Hunt

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

Start Hunting!