Home > Objects > @iFunc > mlock.m

iFit/mlock

PURPOSE ^

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

SYNOPSIS ^

function a = mlock(a, varargin)

DESCRIPTION ^

 b = mlock(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 mlock(model, parameter)

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

   mlock(model, {'Parameter1', 'Parameter2', ...})
     lock/fix parameter for further fits
   mlock(model, [1 2 ...])
     lock/fix parameters given their index
   mlock(model, 'all')
     lock/fix all parameters
   mlock(model, 'none')
     free/unlock all parameters
   mlock(model)
     display fixed 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=mlock(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