Home > Applications > SpinW > m_files > sw_readparam.m



parse input arguments (option, value pairs)


function input = sw_readparam(format, varargin)


 parse input arguments (option, value pairs)

 input = SW_READPARAM(format, raw) 

 It reads in parameters from input structure. Lower and upper case
 insensitive, the output structure has the names stored in format.fname.
 Instead of a struct type input, also a list of parmeters can be given in
 a parameter name, value pairs. Where the parameter name is a string.


 format is struct type with the following fields:
 fname     Field names, strings in cell, dimensions are [nParm 1].
 size      field size, if negative means index, field sizes with same
           negative index have to be the same size.
 defval    Optional, default value if missing.
 soft      Optional, if exist and equal to 1, in case of bad input
           value, defval is used without error message.


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