home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 9.ddi / IDENT.DI$ / NUDERST.M < prev    next >
Encoding:
Text File  |  1993-03-11  |  457 b   |  15 lines

  1. function nds = nuderst(pars)
  2. %NUDERST     Selects the step size for numerical differentiation
  3. %
  4. %    NDS = nuderst(PARS)
  5. %
  6. %    PARS: The parameters, a row vector.
  7. %    NDS: A row vector, whose k:th element is the step size to be used
  8. %            for numerical differentiation with respect to the k:th parameter
  9.  
  10. %    L. Ljung 10-2-90
  11. %    Copyright (c) 1990 by the MathWorks, Inc.
  12. %    All Rights Reserved.
  13.  
  14. nds = max(1e-7*ones(1,length(pars)),abs(pars)*1e-4);
  15.