EzyFit Function Reference<< Prev | Next >> 
showfit
Show the fit for the active curve.

Description
showfit displays the fit specified in a dialog box for the active 
curve. Use undofit or rmfit to remove the fit. The display settings are 
defined in the file fitparam. 
 
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 showfit. If some data are selected by the "Data 
Brushing" tool (only for Matlab >= 7.6), only those data are fitted. 
 
showfit(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. 
 
showfit(F) displays the fit F defined from the fit structure returned 
by ezfit. See ezfit for the definition of F. 
 
showfit(..., 'PropertyName','PropertyValue',...) specifies the 
properties of the fit (e.g., fit colors, line width etc.). See the 
default values in the file fitparam. 
 
F = showfit(...) 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, showfit checks the Y-scale to know if Y or LOG(Y) has to be 
fitted. 
 
Examples
 
   type 'plotsample' and follow the instructions. 
 
   plotsample power 
   showfit('c*x^n; log'); 
 
   plotsample hist 
   f = ezfit('gauss'); 
   showfit(f,'fitcolor','red','fitlinewidth',2); 
 
   plotsample poly2 
   f = showfit('z(v) = poly3','dispfitlegend','on'); 
   editcoeff(f); 
 
See Also
ezfit, undofit, rmfit, plotsample, pickdata, INTERP1. 
Published output in the Help browser 
   showdemo showfit 
 

 Previous: showeqbox_newNext: showresidual 

2005-2017 EzyFit Toolbox 2.45