EzyFit Function Reference<< Prev | Next >> 
selectfit
Fit part of the data from the active curve (remove outliers)

Description
selectfit displays the fit specified in a dialog box for the data 
selected from the active curve by drawing a lasso. Use the left mouse 
button to draw the lasso. Use undofit or rmfit to remove the fit. 
The default display settings are defined in the file fitparam. 
 
*** Note: This function is not fully stable. 
    If you use Matlab >= 7.6, it is encouraged to use 
    showfit with the "Data Brushing" mode instead of selectfit. 
    selectfit will be removed in future releases of EzyFit. 
 
By default, the first curve in the active figure is used (see fitparam 
to change this default behavior). To fit another curve, select it 
before calling selectfit. 
 
selectfit(FUN) specifies the fitting string FUN. FUN may be either a 
default fit (eg, 'exp', 'power'), a user-defined fit (see editfit), 
or directly a fit equation (eg, 'c+a*exp(-x/x0)'). See ezfit for the 
syntax of FUN. FUN may also be any valid interpolation method string 
(eg 'spline', 'cubic'... excepted 'linear'). See INTERP1 for the valid 
interpolation methods. 
 
selectfit(F) use the equation defined in the fit structure F. 
 
selectfit(..., 'PropertyName','PropertyValue',...) specifies the 
properties of the fit (e.g., fit colors, line width etc.). See the 
default values in the file fitparam. 
 
F = selectfit(...) also returns the fit structure F. F has the same 
content as the fit structure returned by ezfit (see ezfit for details), 
and also contains a handle to the equation box and to the curve. 
 
Note that if the option 'lin' or 'log' is not specified in the string 
FUN, selectfit checks the Y-scale of the current figure to determine 
whether Y or LOG(Y) has to be fitted. 
 
Examples
 
   plotsample power 
   selectfit('power; log'); 
 
   plotsample poly2 
   f = selectfit('z(v) = poly3','fitcolor','red','fitlinestyle',':'); 
   editcoeff(f); 
 
See Also
showfit, ezfit, undofit, rmfit, plotsample, SELECTDATA, INTERP1. 
 
Published output in the Help browser 
   showdemo selectfit 

 Previous: rmfitNext: semilogypn 

2005-2009 EzyFit Toolbox 2.30