The Ezyfit toolbox for Matlab enables you to perform simple curve fitting of onedimensional data using arbitrary (non linear) fitting functions.
EzyFit adds a new menu to your figure windows, which allows you to easily fit your data with predefined or userdefined fit equations, including selection of your data (outliers removing) using the ``Data Brushing'' tool (available since Matlab 7.6).
This toolbox also provides a set of commandline functions to perform curve fitting 'programmatically': you just have to type something like showfit('c+a/x^n') and EzyFit gives you the values for c, a and n and shows you the curve!
Visit http://www.fast.upsud.fr/ezyfit/ for additional info.
Installation and system requirements
EzyFit needs Matlab 7.0 or higher. It has been tested under 7.0 to 8.3 (R2014a), but mainly under Windows. The commandline functions (e.g. ezfit, showfit...) work equally well on all systems. However graphical operations (e.g. showslope, getslope...) may not be fully stable, especially on nonWindows systems.
1. Download and unzip the EzyFit Toolbox in a directory somewhere in your system. For instance, in a Windows installation, the directory Documents/MATLAB/ezyfit may be a good location. Do NOT install the toolbox in the Matlab directory itself (Program Files/Matlab directory in Windows). If you upgrade from an older version, first empty the previous directory.
2. Select 'Set Path' (available in the menu File in Matlab 7, or in the tab Home in Matlab 8). In the dialog box, click on 'Add Folder' (NOT 'with subfolders') and select the ezyfit directory. Click on 'Save' and 'Close'.
3. If you want to always have the Ezyfit menu in your figures, type
'efmenu install'. This will create or update your 'startup.m' file.
Note: If you upgrade Matlab and you want to use your previous Ezyfit installation, you just have to follow the steps 23.
Examples:
plotsample power % a power law
showfit c*x^n
plotsample hist % an histogram
f = ezfit('gauss'); % fits with a Gaussian
f % displays the values of the coefficients
