Curve fitting with custom equation, not using toolbox
5 views (last 30 days)
Show older comments
I have sample X and Y data:
x=[5:5:50];
y=[15 25 32 33 37 35 38 39 41 42];
The data are related by y = a * ( x/(b+x) ) equation
I need to find the coeffs a and b, by curve fitting.
I am trying to use polyfit, but nothing is coming out correctly.
What is the procedure for curve fitting a custom equation? The matalb book I am using is good about basic polynomial equations, and the conversion when converting other equations to polynomials. I am super lost on this one. Thanks.
The answer using Curve fitting toolbox is pasted below, but I can't seem to get there... Help!
General model:
f(x) = (a.*x)/(b+x)
Coefficients (with 95% confidence bounds):
a = 49.58 (45.65, 53.51)
b = 9.943 (7.168, 12.72)
0 Comments
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox 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!