sfit
Constructor for sfit object
Description
surfacefit = sfit(fittype,coeff1,...,coeffn)sfit object surfacefit using the model type specified by the fittype object and the coefficient values coeff1, coeff2, etc.
An sfit object encapsulates the result of fitting a surface to data. They are normally constructed by calling the fit function, or interactively by exporting a fit from the Curve Fitter app to the workspace. You can get and set coefficient properties of the sfit object.
You can treat an sfit object as a function to make predictions or evaluate the surface at values of X and Y.
Like the cfit class, sfit inherits all fittype methods.
Note
sfit is called by the fit function when fitting fittype objects to data. To create an sfit object that is the result of a regression, use fit.
You should call sfit directly only if you want to assign values to coefficients and problem parameters of a fittype object without performing a fit.
Methods of sfit objects :
| argnames | Input argument names of cfit,sfit, orfittypeobject | 
| category | Category of fit of cfit,sfit, orfittypeobject | 
| coeffnames | Coefficient names of cfit,sfit, orfittypeobject | 
| coeffvalues | Coefficient values of cfitorsfitobject | 
| confint | Confidence intervals for fit coefficients of cfitorsfitobject | 
| dependnames | Dependent variable of cfit,sfit, orfittypeobject | 
| differentiate | Differentiate cfitorsfitobject | 
| formula | Formula of cfit,sfit, orfittypeobject | 
| indepnames | Independent variable of cfit,sfit, orfittypeobject | 
| islinear | Determine if cfit,sfit, orfittypeobject is linear | 
| numargs | Number of input arguments of cfit,sfit, orfittypeobject | 
| numcoeffs | Number of coefficients of cfit,sfit, orfittypeobject | 
| probnames | Problem-dependent parameter names of cfit,sfit, orfittypeobject | 
| probvalues | Problem-dependent parameter values of cfitorsfitobject | 
| quad2d | Numerically integrate sfitobject | 
| setoptions | Set model fit options | 
| sfit | Constructor for sfitobject | 
| type | Name of cfit,sfit, orfittypeobject | 
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2009a