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.
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
Zitieren als
Frederic Moisy (2024). EzyFit 2.44 (https://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-44), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- AI and Statistics > Curve Fitting Toolbox >
- AI and Statistics > Curve Fitting Toolbox > Fit Postprocessing >
Tags
Quellenangaben
Inspiriert: GraphScannerGUI
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
ezyfit/
ezyfit/private/
ezyfit/demo/html/
ezyfit/html/
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
2.44.0.0 | Bug fixes (see the release notes) |
||
2.43.0.0 | v2.43: The Ezyfit menu is compatible with the new Graphics system of Matlab R2014b (8.4) |
||
1.7.0.0 | Bug fixed in 'efmenu install' for Windows users |
||
1.6.0.0 | 1 additional minor bug fixed |
||
1.5.0.0 | 2 minor bugs fixed |
||
1.4.0.0 | 2 bugs fixed: fits in log coordinates now work correctly, and 'efmenu install' now compatible with Windows 7. |
||
1.3.0.0 | Bug fixed : the figure files (.FIG) and user interfaces (GUI) were corrupted with the Ezyfit menu. This issue has been fixed. See the new function "remove_efmenu_fig.m". |
||
1.2.0.0 | Added support to the "Data Brushing" tool (Matlab 7.6) |
||
1.1.0.0 | Now suport the "Data Brushing" tool of Matlab 7.6 |
||
1.0.0.0 | Description text improved |