The Ezyfit toolbox for Matlab enables you to perform simple curve fitting of one-dimensional 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 user-defined 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 command-line 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.u-psud.fr/ezyfit/ for additional info.
Installation and system requirements
EzyFit needs Matlab 7.0 or higher. It has been tested up to R2015b, but mainly under Windows. The command-line functions (e.g. ezfit, showfit...) work equally well on all systems. However graphical operations (e.g. showslope, getslope...) are not fully stable.
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 2-3.
plotsample power % a power law
plotsample hist % an histogram
f = ezfit('gauss'); % fits with a Gaussian
f % displays the values of the coefficients
Frederic Moisy (2022). EzyFit 2.44 (https://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-44), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!