Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Torsten
Posts:
1,627
Registered:
11/8/10


Re: Curve fitting tool using custom equations
Posted:
Mar 12, 2013 9:48 AM


"Dante Ian Detera" wrote in message <khna0b$js5$1@newscl01ah.mathworks.com>... > I am trying to curve fit a set of data (in xy plot/form) into an equation using curve fitting tool in mat lab. > > The custom equation is: > y=a*(1erf(x/(2*sqrt(b*(7.88e+08))))) > > Starting point of a is 1 > Starting point of b is 1e08 > > I awlays get an error saying: > Fit could not be computed due to error: > > Error in fittype expression ==> a.*(1erf(x./(2.*sqrt(b.*(7.88e+08))))) > ??? Input must be real. > > I have no idea how to debug this one. Help please. > > Thanks, > Dante
Does the error disappear if you choose the custom equation as y=a*(1erf(x/(2*sqrt(b^2*(7.88e+08))))) ?
Best wishes Torsten.



