Theoretical curve fitting in experimental data
2 views (last 30 days)
Show older comments
mamraj singh
on 28 Jul 2011
Commented: Walter Roberson
on 13 Aug 2015
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
2 Comments
Riyaz Mohammed
on 13 Aug 2015
Can someone explain in detail with an example code? I am new to matlab. Thanks in advance.
Walter Roberson
on 13 Aug 2015
Accepted Answer
the cyclist
on 28 Jul 2011
Probably the best tool in MATLAB to do this is the function nlinfit() in the Statistics Toolbox.
0 Comments
More Answers (1)
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.
0 Comments
See Also
Categories
Find more on Linear and Nonlinear Regression in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!