cfit - Constructor for cfit object

Syntax

cfun = cfit(ffun,coeff1,coeff2,...)

Description

cfun = cfit(ffun,coeff1,coeff2,...) constructs the cfit object cfun using the model type specified by the fittype object ffun and the coefficient values coeff1, coeff2, etc.

Example

f = fittype('a*x^2+b*exp(n*x)')
f =
     General model:
       f(a,b,n,x) = a*x^2+b*exp(n*x)
c = cfit(f,1,10.3,-1e2)
c =
     General model:
       c(x) = a*x^2+b*exp(n*x)
     Coefficients:
       a =           1
       b =        10.3
       n =        -100

See Also

fit, fittype, feval

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS