Close This Window

Please download official ILL logos here


For using on the web or on a screenFor printing in high resolutionWhite version, for dark backgrounds

Download PNG

Download AI

Download white PNG

Download JPG


Download white AI


The Computing for Science (CS) group supports ILL scientists, students and visitors in a number of activities including data analysis, instrument simulation and sample simulation.

Back to ILL Homepage
English French Deutsch 

All Software

Version 4.2. (1999)

What is Mfit?

Mfit is an application for interactive non-linear fitting and data analysis that runs under MATLAB (version 4.2 or later). The primary aim of Mfit is to provide a fast, easy, flexible, and powerful way of fitting arbitrary model functions to two-dimensional (ie. x-y) data.

Why use it?

*Mfit provides an attractive and easy to use point-and-click interface. Most operations (including guessing starting parameters for fits) can be performed via the mouse. easy use.

    *You can provide your own load routines so that data files in any unusual or proprietary format can be loaded transparently. Load routines for some common formats are supplied. easy data import.

    *You can easily write and add your own fitting functions to the library of existing functions. The MATLAB language makes it very easy to write even complex functions, and speed-critical functions can be written in C or FORTRAN. custom fit functions.

    *You can write your own fitting routines, so that you are not tied to any particular fitting algorithm. You need not even use least-squares minimization. You can write interfaces to popular minimization routines such as MINUIT. custom fit routines.

    *Repetitive fitting operations can be automated using a simple batch language. easy automation.

    *Mfit is written entirely in the MATLAB language, and so should run on any operating system to which MATLAB has been ported without modification (tested under HP-UX, VMS, Sun OS, and all MS Windows so far.). portable.

The next section describes how to obtain, install, and use Mfit.

How can I find out more?

Send an e-mail : [ To ILL ]

Mfit was initially developped by M. Zinkin (version 0.3, 1997), and then updated by E. Farhi and D. McMorrow.(version 4.2, 1999). The Rescal extension for triple axis spectrometers was written by A. Tennant (version 5, 1998).

This documentation for Mfit version 4.2 is greatly inspired from the previous version 0.3 one by M. Zinkin.


(c) Martin Zinkin. June 14 1996. Revised E. Farhi and D. McMorrow. January 3, 2000.