Computing for Science

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

All Software

Version 4.2. (1999)

Mfit user guide

  • Basic topics is the starting point for new users. The topics take you through the steps necessary to load your data, fit a model function to it, and save the results.
  • Extending Mfit explains how to enhance Mfit by adding your own load functions, fitting functions, and fitting routines.
  • Batch files allow you to automate fitting and provide a permanent record of fitting procedures using a simple macro language.
  • Customizing Mfit describes the structure of the initialization file read when Mfit starts. This allows you to change various default options to suit your needs and preferences.
  • Obtaining and installing Mfit explains how to download and set up Mfit on your system.
  • Send email for more help, or with comments or bug reports (to E. Farhi or D. McMorrow)

Basic topics

To start Mfit, first open a Matlab session, and type mfit
If you encounter any problem here, you may need to check that the install process is complete.

Loading data files
Choosing fitting functions
Fitting
Saving results

Going further with Mfit

More advanced Fitting
Options when loading data files (Column selector, MFit parameter file, General Load routine, Direct Data entry)
Manipulating data (X-axis transform, data transformation, direct operations...)
Building a complex fitting function (multiple function fit, convolutions...)
How to write fitting functions
How to write load functions
How to write fitting routines

Batch files

Mfit batch files (INI format ans usage, saved user configurations)

Customizing Mfit

How to obtain and install Mfit

Possible Future evolutions of Mfit

Mfit is still under developpement. Some envisaged enhancements are (as far as we can find time to implement that !):

  • Multiple data windows
  • Multiple data in one data window
  • More complex data treatment (such as in Mview)
  • Possibility to constrain parameters during fits
  • Interface with the McStas program for 3-axis instrument simulations
  • Improvement of Rescal

 

 


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