Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Curve fitting tool using custom equations
Replies: 1   Last Post: Mar 12, 2013 9:48 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 1,560
Registered: 11/8/10
Re: Curve fitting tool using custom equations
Posted: Mar 12, 2013 9:48 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Dante Ian Detera" wrote in message <khna0b$js5$1@newscl01ah.mathworks.com>...
> I am trying to curve fit a set of data (in x-y plot/form) into an equation using curve fitting tool in mat lab.
> The custom equation is:
> y=a*(1-erf(x/(2*sqrt(b*(7.88e+08)))))
> Starting point of a is 1
> Starting point of b is 1e-08
> I awlays get an error saying:
> Fit could not be computed due to error:
> Error in fittype expression ==> a.*(1-erf(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

Best wishes

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.