4.82456

4.8 | 59 ratings Rate this file 274 downloads (last 30 days) File Size: 640.37 KB File ID: #10176

EzyFit 2.30

by Frederic Moisy

 

27 Feb 2006 (Updated 05 Feb 2009)

No BSD License  

A free curve fitting toolbox for Matlab

Download Now | Watch this File

File Information
Description

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 under 7.0 to 7.7 (R2008b), but mainly under Windows XP. The command-line functions (e.g. ezfit, showfit...) work equally well on all systems. However graphical operations (e.g. selectfit, getslope...) may not be fully stable, especially on non-Windows systems, and/or for recent Matlab releases.

1. Download and unzip the EzyFit Toolbox in a directory somewhere in your system. For instance, in a Windows XP installation, the directory My Documents/MATLAB/toolbox/ezyfit may be a good location. If you upgrade from an older version, first empty the previous directory.

2. From the menu 'File > Set Path', click on 'Add Folder' (not 'with subfolders') and select the ezyfit directory. Click on 'Save' and 'Close'.

3. Restart Matlab. From the Start button, select Toolboxes > EzyFit to check that the toolbox is correctly recognized by your system.

4. If you upgrade from an earlier version, type rehash toolbox to make sure that Matlab refreshes the function cache.

5. If you want to always have the Ezyfit menu in your figures, type efmenu install. This will create or update your 'startup.m' file in the directory /toolbox/local of your Matlab installation.

Note: If you upgrade Matlab and you want to use your previous Ezyfit installation, you just have to follow the steps 2-5.

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

MATLAB release MATLAB 7.0.1 (R14SP1)
Zip File Content  
Published M Files Discover Ezyfit: A free curve fitting toolbox for Matlab
HTML Files
Other Files
ezyfit/_readmefirst_.txt,
ezyfit/about_ef.jpg,
ezyfit/about_ef.m,
ezyfit/axis0.m,
ezyfit/axisc.m,
ezyfit/axisl.m,
ezyfit/checkupdate_ef.m,
ezyfit/Contents.m,
ezyfit/defaultfit.mat,
ezyfit/delseldata.m,
ezyfit/demo/,
ezyfit/demo/efdemo.m,
ezyfit/demo/html/,
ezyfit/demo/html/efdemo.png,
ezyfit/demo/html/efdemo_01.png,
ezyfit/demo/html/efdemo_02.png,
ezyfit/demo/html/efdemo_03.png,
ezyfit/demo/html/efdemo_04.png,
ezyfit/demo/html/efdemo_05.png,
ezyfit/demo/html/efdemo_06.png,
ezyfit/demo/html/efdemo_07.png,
ezyfit/demo/html/efdemo_08.png,
ezyfit/demo/html/efdemo_09.png,
ezyfit/demo/html/efdemo_10.png,
ezyfit/demo/html/efdemo_11.png,
ezyfit/demo/html/Thumbs.db,
ezyfit/dfig.m,
ezyfit/dispeqfit.m,
ezyfit/docezyfit.m,
ezyfit/editcoeff.m,
ezyfit/editfit.m,
ezyfit/efmenu.m,
ezyfit/evalfit.m,
ezyfit/ezfft.m,
ezyfit/ezfit.m,
ezyfit/fitparam.m,
ezyfit/getslope.m,
ezyfit/gridc.m,
ezyfit/html/,
ezyfit/html/ef_logo16.jpg,
ezyfit/html/ezyfit_banner.jpg,
ezyfit/html/ezyfit_efmenu.jpg,
ezyfit/html/ezyfit_faq_fig1.jpg,
ezyfit/html/ezyfit_faq_fig2.jpg,
ezyfit/html/ezyfit_faq_fig3.jpg,
ezyfit/html/ezyfit_faq_fig4.jpg,
ezyfit/html/ezyfit_faq_fig5.jpg,
ezyfit/html/ezyfit_faq_fig6.jpg,
ezyfit/html/helptoc.xml,
ezyfit/html/Thumbs.db,
ezyfit/info.xml,
ezyfit/linx.m,
ezyfit/liny.m,
ezyfit/loadfit.m,
ezyfit/loglogpn.m,
ezyfit/logx.m,
ezyfit/logy.m,
ezyfit/makevarfit.m,
ezyfit/myginput.m,
ezyfit/pickdata.m,
ezyfit/plotsample.m,
ezyfit/prevfit.mat,
ezyfit/prevslope.mat,
ezyfit/private/,
ezyfit/private/eq2ml.m,
ezyfit/private/findword.m,
ezyfit/private/greekize.m,
ezyfit/private/makedoc_ef.m,
ezyfit/private/selectdata.m,
ezyfit/private/setautodisplayname.m,
ezyfit/rmfit.m,
ezyfit/selectfit.m,
ezyfit/semilogypn.m,
ezyfit/showeqbox.m,
ezyfit/showfit.m,
ezyfit/showresidual.m,
ezyfit/showslope.m,
ezyfit/sw.m,
ezyfit/swx.m,
ezyfit/swy.m,
ezyfit/Thumbs.db,
ezyfit/undofit.m,
ezyfit/userfit.mat
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (68)
03 Mar 2006 Jack Chen

Looks like a great free toolbox for matlab. However, I'm getting the following error:

>> efmenu install
??? Error using ==> load
Unable to read MAT file d:\matlab\easyfit\userfit.mat

07 Mar 2006 Frederic Moisy

Dear Jack Chen,
This error does not occur with R14.
Some features of this toolbox (eg, nested functions) need R14. Sorry.

21 Mar 2006 John D'Errico

While I did not try out the menu interface, the command line interface was indeed easy to use. A splendid tool.

28 Sep 2006 Blair Greenan

Excellent toolbox for curve fitting. Any questions I had were quickly answered by the author.

06 Oct 2006 Dietrich Lueerssen

I do like this toolbox, and it works well for me. It is really useful that there are both a GUI and a programmatical access, well done.

I do have a suggestion for future versions: at the moment, parameters of the fit such as its color are hardcoded into a file (fitparam.m). It would be helpful to be able to control that programmatically, particularly if you want to show multiple fit curves for the same data set (e.g., to show that one fit is better than another one).

30 Oct 2006 Frederic Moisy

Dear D. Lueerssen, Thanks for your comment. The new version (2.10), submitted 30 oct 2006, now allows for specifying fit parameters programmatically. Example: showfit('a*x+b','fitcolor','red',...) - The author.

29 Mar 2007 Jonas Semoi  
30 Mar 2007 Ravi Prakash

Hi,
Its superb toolbox you ahve provided to Matlab users. I was struggling to fit a smooth curve for amplitude analysis of seismic data. This toolbox does it in fantastic way.
Thanks
Ravi

30 Mar 2007 Andrew Isaacs

Excellent work. Did what I needed (multiple power terms) when no-one else could - at least for free. Easy to install and work with, and great solutions.

13 Apr 2007 Matt Lopz

Excellent Utilty.

14 Apr 2007 atanas atanasov  
17 Apr 2007 Josiah Haswell

Fabulous

04 May 2007 MArta Castillo

Excellent

27 May 2007 david abks

Great - well done!!!!!!!!

05 Jun 2007 Andres Leal

Great software! I was able to do curve fits using custom equations that wouldn't be fitted with KaleidaGraph.

20 Jun 2007 D J

a nice tolbox...best alternative to matlab curve fitting toolbox which sadly doesnot come for student version of the software.

19 Jul 2007 Woody Schneider

Great, but it behaves sketchily on the Mac OS X Intel version...

24 Jul 2007 Gilles Bertrand

A great tool! Fill a gap in matlab functionalities. Good interface, good integration into matlab, merci Frederic M.!!

03 Nov 2007 Alex Liberzon

Very useful.

09 Nov 2007 Chintan Trivedi  
14 Nov 2007 andy yang

So splendid!

19 Nov 2007 Hauke Schramm  
03 Dec 2007 Mickael PARIS  
05 Dec 2007 Joe M  
03 Jan 2008 m la  
12 Jan 2008 Mark Dean

Thank you for a useful and well writtten program!
I was able to write a small program to easily choose whether to fix or vary some of the fit parameters. It would be useful if this was included as standard.

29 Jan 2008 A Rose

Perfect! Just what I needed to estimate parameters for over 500 chick growth curves.

05 Feb 2008 R B

Very good and powerful toolbox

19 Feb 2008 P. Sci  
02 Mar 2008 sri murthy

Great alternative to cftool...excellent

18 Apr 2008 K E

Very helpful and intuitive.

12 Jun 2008 Jason Ruth

Fantastic program, very straightforward and easy to use.

23 Jun 2008 Nirvikar Dashora

Please tell me how to Unistall the ezyfit toolbox from MATLAB.

27 Jun 2008 N Davidson

Simple to use and very useful.

07 Jul 2008 ? ?

Excellent

25 Jul 2008 P Jop

very usefull with command-line functions

04 Aug 2008 M Lidierth

Used the GUI menu without any hitches. Intuitive and easy-to-use. Excellent.

21 Aug 2008 Alex Liberzon

great support and improvements over the last two years.

29 Aug 2008 Jim S

Excellent and smooth!

01 Oct 2008 Chris Calvert

Just downloaded this, it looks great! Any functions I have tried (so far) work very easily and smoothly. Are there any plans to include lorentzian fitting in the tool box?

03 Oct 2008 Janina Madoff

impossible to remove their menu from your gui figures and uninstall cleanly

20 Nov 2008 Thierry Dalon

Janina and Nirvikar: do not put bad ratings only because you don't know how to use Matlab. At least read the documentation before, contact the author before or ask for support in the Newsgroup. Your rating is not fair!
To remove the menu from figures use>> efmenu off. To remove the Toolbox simply remove from Matlab path or entry in startup file if you used efmenu install.

To the author : to avoid function naming conflicts, it may be better to name all the functions in the Toolbox with a common prefix like 'ef'.

01 Dec 2008 Timo

Take a look at the known problems: "If the Ezyfit toolbox has been installed using efmenu, all GUI figure windows created using GUIDE have the Ezyfit menu included. Uninstalling the Ezyfit toolbox produces an error, since the GUI looks for the menu which is not available. No solution for the moment."
Using efmenu off does not remove the menus.
This is a clear minus for an otherwise very useful toolbox.

12 Dec 2008 Frederic Moisy  
12 Dec 2008 Frederic Moisy

(Sorry for the unintentional rating of my own file on my previous post!)

TO UNINSTALL THE EZYFIT TOOLBOX:
1. Edit the 'startup.m' file (type 'edit startup') and remove the 2 lines starting with 'efmenu' and 'fprintf()'
2. Go the menu 'File', 'Set Path', and remove the directory 'ezyfit'
3. Restart Matlab

CONCERNING THE ISSUE OF THE EZYFIT MENU IN SAVED FIGURES AND GUIs:
Sorry for this bug, I have no idea on how to fix it. Suggestions are welcome. Note that you can use the Ezyfit toolbox without using the Ezyfit menu. For this, apply step 1 above.

Hope this helps - The author.

23 Dec 2008 Janina

Thierry Dalon -
No need to sling insults like a common blogger. I had assumed better of Matlab users. I am referring to the bug the Frederic Moisy himself identified - that it is difficult to remove the ezfit menu from previously saved figures. I have indeed removed the ezfit menu. I reloaded my figure generating scripts, and all was well. Thank you Frederic, for your feedback.

26 Jan 2009 Soumitra Deshmukh

Does it work with earlier versions of Matlab such as 6.5 ?

26 Jan 2009 Michael Jordan  
11 Feb 2009 Cezar

Excellent tool! Many thanks!!!

11 Mar 2009 Thanos

Very useful and well explained. Thank you!

19 Mar 2009 Roy  
19 Mar 2009 Sonali  
03 Apr 2009 Florian  
06 May 2009 Clemens Listner

Thank you for this great toolbox

26 May 2009 Erdal Bizkevelci  
26 May 2009 Farah

I just downloaded this and it's great! Very easy to use and non-cluttered. 5 over 5! Is there any where I can obtain more in-depth information about how it works and what the output values really mean? That would be superb.

29 May 2009 Antony Lee

The package is really great! However, I would like to know whether it is possible to have some fixed parameter values when using ezfit, eg.
ezfit(x,y,'y(x)=a*x+b')
assuming that I know the actual value of a and want only the fit for b. (Of course if a=3 or some other value I could write ezfit(x,y,'y=3*x+b'), but I want to include this in a script, so a would be a variable...)

02 Jun 2009 Roy  
16 Jun 2009 Arnold

Awesome toolbox. Instrumental in my research.

16 Jul 2009 Erdal Bizkevelci  
31 Jul 2009 Andrew Barrow

Fantastic tool. This is incredibly useful. Especially if you use the "data paintbrush" tool in the figure window.

02 Sep 2009 Stefan Gachter

Excellent tool!

07 Sep 2009 Muhammad Tauha Ali

splendid tool. inclusion of statistical tests such as RMSE, t-statistics and R-squared statistics in ezyfit menu will enhance the functionality of the toolbox.

16 Sep 2009 Dave Robinson

Nice application, seems to do everything it says on the box

22 Oct 2009 Andres Klever

Hi Frederic, well im sending you this mail because i have a problem with this tool, first of all say to you thanks for this tool i think that is really good, ok , so there are 2 problems:

1) i have a problem with the weight
 In order to perform a weighted fit on this data, the vectors y and dy have to be merged into a 2-by-N matrix and given as the second input argument to ezfit. Compare the results for the usual and weighted fits:
fw = ezfit(x, [y;dy], 'exp');
showfit(fw,'fitcolor','red');
f = ezfit(x, y, 'exp');
showfit(f,'fitcolor','blue');
my problem is that when i do this (exactly the same) the data [y;dy] is from a different size than x, so obiously i get this error:

??? Error using ==> ezfit at 272
X and Y dimensions must agree.

if you can help me with this it would be great..

2)the other problem is that when i plot more than one fit for the same data, the plot just shows one legend that is pasted into the other legend, hahaha, so i just can see one of the 2 legends that should appear (showing me the different equations)...

ok, frederic sorry for asking you this questions but i really need to know this,

thanks very much,

23 Oct 2009 Frederic Moisy

Dear Andres,

Problem #1: This occurs if y and dy are column vectors instead of row vectors. If this is the case, then just replace [y; dy] by [y, dy]

Problem #2: Move the equation box using the mouse.

-- The author

18 Nov 2009 ihsan

Great toolbox!!! Many Thanks.

21 Nov 2009 Massimo

Dear Frederic,
is it possible to associate the error to the estimated parameters?
Thanks

Please login to add a comment or rating.
Updates
09 Mar 2006

minor bugs fixed (see the release notes in the help browser).

09 Mar 2006

Minor bugs fixed (see the release notes in the help browser)

18 Apr 2006

The 'EasyFit' toolbox has been renamed 'EzyFit', in order to avoid confusion with other existing products.

06 Sep 2006

New version (2.04)
A FAQ is now included
Minor bugs fixed

07 Sep 2006

help text improved

30 Oct 2006

New version 2.10: See the 'release notes' page for changes.

07 Mar 2008

New version 2.20. See release notes for details.

09 Mar 2008

Description text improved

05 Feb 2009

Now suport the "Data Brushing" tool of Matlab 7.6

05 Feb 2009

Added support to the "Data Brushing" tool (Matlab 7.6)

Tag Activity for this File
Tag Applied By Date/Time
approximation Frederic Moisy 22 Oct 2008 08:17:03
interpolation Frederic Moisy 22 Oct 2008 08:17:03
curve Frederic Moisy 22 Oct 2008 08:17:03
fitting Frederic Moisy 22 Oct 2008 08:17:03
nonlinear Frederic Moisy 22 Oct 2008 08:17:03
mathematics Frederic Moisy 22 Oct 2008 08:17:03
fit Frederic Moisy 22 Oct 2008 08:17:03
curve omzaz 09 Sep 2009 06:34:16
vetor creating in workspace Sandeep gande 20 Oct 2009 22:05:14
vectorise the columns of a matrix Sandeep gande 20 Oct 2009 22:07:19
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com