[4] | 1 | <html><head><title>selectfit (Ezyfit Toolbox)</title> |
---|
| 2 | <!-- Help file for selectfit.m generated by makehtmldoc 1.22, 04-Feb-2009 23:32:41 --> |
---|
| 3 | <!-- makehtmldoc (F. Moisy, 2005-2006), see http://www.fast.u-psud.fr/~moisy/ml/ --> |
---|
| 4 | |
---|
| 5 | <link rel=stylesheet href="docstyle1.css" type="text/css"> |
---|
| 6 | </head> |
---|
| 7 | <body bgcolor=#ffffff> |
---|
| 8 | <table width="100%" border=0 cellpadding=0 cellspacing=0><tr><td valign=baseline bgcolor="#e7ebf7"><b>EzyFit Function Reference</b></td><td valign=baseline bgcolor="#e7ebf7" align=right><a href="rmfit.html"><b><< Prev</b></a> | <a href="semilogypn.html"><b>Next >></b></a> </td></tr></table> |
---|
| 9 | <font size=+3 color="#990000">selectfit</font><br> |
---|
| 10 | Fit part of the data from the active curve (remove outliers)<br> |
---|
| 11 | <br> |
---|
| 12 | |
---|
| 13 | <font size=+1 color="#990000"><b>Description</b></font> |
---|
| 14 | <code><pre> |
---|
| 15 | <b>selectfit</b> displays the fit specified in a dialog box for the data |
---|
| 16 | selected from the active curve by drawing a lasso. Use the left mouse |
---|
| 17 | button to draw the lasso. Use <a href="undofit.html">undofit</a> or <a href="rmfit.html">rmfit</a> to remove the fit. |
---|
| 18 | The default display settings are defined in the file <a href="fitparam.html">fitparam</a>. |
---|
| 19 | |
---|
| 20 | *** Note: This function is not fully stable. |
---|
| 21 | If you use Matlab >= 7.6, it is encouraged to use |
---|
| 22 | <a href="showfit.html">showfit</a> with the "Data Brushing" mode instead of <b>selectfit</b>. |
---|
| 23 | <b>selectfit</b> will be removed in future releases of EzyFit. |
---|
| 24 | |
---|
| 25 | By default, the first curve in the active figure is used (see <a href="fitparam.html">fitparam</a> |
---|
| 26 | to change this default behavior). To fit another curve, select it |
---|
| 27 | before calling <b>selectfit</b>. |
---|
| 28 | |
---|
| 29 | <b>selectfit</b>(FUN) specifies the fitting string FUN. FUN may be either a |
---|
| 30 | default fit (eg, 'exp', 'power'), a user-defined fit (see <a href="editfit.html">editfit</a>), |
---|
| 31 | or directly a fit equation (eg, 'c+a*exp(-x/x0)'). See <a href="ezfit.html">ezfit</a> for the |
---|
| 32 | syntax of FUN. FUN may also be any valid interpolation method string |
---|
| 33 | (eg 'spline', 'cubic'... excepted 'linear'). See INTERP1 for the valid |
---|
| 34 | interpolation methods. |
---|
| 35 | |
---|
| 36 | <b>selectfit</b>(F) use the equation defined in the fit structure F. |
---|
| 37 | |
---|
| 38 | <b>selectfit</b>(..., 'PropertyName','PropertyValue',...) specifies the |
---|
| 39 | properties of the fit (e.g., fit colors, line width etc.). See the |
---|
| 40 | default values in the file <a href="fitparam.html">fitparam</a>. |
---|
| 41 | |
---|
| 42 | F = <b>selectfit</b>(...) also returns the fit structure F. F has the same |
---|
| 43 | content as the fit structure returned by <a href="ezfit.html">ezfit</a> (see <a href="ezfit.html">ezfit</a> for details), |
---|
| 44 | and also contains a handle to the equation box and to the curve. |
---|
| 45 | |
---|
| 46 | Note that if the option 'lin' or 'log' is not specified in the string |
---|
| 47 | FUN, <b>selectfit</b> checks the Y-scale of the current figure to determine |
---|
| 48 | whether Y or LOG(Y) has to be fitted. |
---|
| 49 | |
---|
| 50 | </pre> |
---|
| 51 | <font size=+1 color="#990000"><b>Examples</b></font> |
---|
| 52 | <pre> |
---|
| 53 | |
---|
| 54 | plotsample power |
---|
| 55 | <b>selectfit</b>('power; log'); |
---|
| 56 | |
---|
| 57 | plotsample poly2 |
---|
| 58 | f = <b>selectfit</b>('z(v) = poly3','fitcolor','red','fitlinestyle',':'); |
---|
| 59 | editcoeff(f); |
---|
| 60 | |
---|
| 61 | </pre> |
---|
| 62 | <font size=+1 color="#990000"><b>See Also</b></font> |
---|
| 63 | <pre> |
---|
| 64 | <a href="showfit.html">showfit</a>, <a href="ezfit.html">ezfit</a>, <a href="undofit.html">undofit</a>, <a href="rmfit.html">rmfit</a>, <a href="plotsample.html">plotsample</a>, SELECTDATA, INTERP1. |
---|
| 65 | |
---|
| 66 | Published output in the Help browser |
---|
| 67 | showdemo <b>selectfit</b> |
---|
| 68 | </pre></code> |
---|
| 69 | |
---|
| 70 | <br> |
---|
| 71 | <table width="100%" border=0 cellspacing=0 bgcolor="#e7ebf7"><tr><td> <a href="rmfit.html"><b>Previous: rmfit</b></a></td><td align=right><a href="semilogypn.html"><b>Next: semilogypn</b></a> </td></tr></table><br> |
---|
| 72 | 2005-2009 <a href="ezyfit.html">EzyFit Toolbox 2.30</a><br> |
---|
| 73 | <br> |
---|
| 74 | </body></html> |
---|