Home > Objects > @iFunc > fix.m

iFit/fix

PURPOSE ^

b = fix(s, parameters, ...) : sets parameter lock (fix) for further fit using the model 's'

SYNOPSIS ^

function a = fix(a, varargin)

DESCRIPTION ^

 b = fix(s, parameters, ...) : sets parameter lock (fix) for further fit using the model 's'

   @iFunc/mlock lock model parameters during further fit process.
     to lock/fix a parameter model, use fix(model, parameter)

   To lock/fix a set of parameters, you may use a regular expression as:
     fix(model, regexp(model.Parameters, 'token1|token2|...'))

   fix(model, {'Parameter1', 'Parameter2', ...})
     lock/fix parameter for further fits
   fix(model)
     display fixed parameters
   fix(model,'all')
     fix/lock all parameters
   fix(model,'none')
     free/unlock all parameters

 input:  s: object or array (iFunc)
         parameters: names or index of parameters to lock/fix (char or scalar)
 output: b: object or array (iFunc)
 ex:     b=fix(a,'Intensity');

 Version: Nov. 26, 2018
 See also iFunc, iFunc/fits, iFunc/munlock, iFunc/xlim

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1