FT_GETOPT

Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_getopt”.

  FT_GETOPT gets the value of a specified option from a configuration structure
  or from a cell-array with key-value pairs.
 
  Use as
    val = ft_getopt(s, key, default, emptymeaningful)
  where the input values are
    s               = structure or cell-array
    key             = string
    default         = any valid MATLAB data type
    emptymeaningful = boolean value (optional, default = 0)
 
  If the key is present as field in the structure, or as key-value
  pair in the cell-array, the corresponding value will be returned.
  
  If the key is not present, ft_getopt will return an empty array.
 
  If the key is present but has an empty value, then the emptymeaningful
  flag specifies whether the empty value or the default value should
  be returned. If emptymeaningful==true, then an empty array will be
  returned. If emptymeaningful==false, then the specified default will
  be returned.
 
  See also FT_SETOPT, FT_CHECKOPT

reference/ft_getopt.txt · Last modified: 2012/05/23 23:02 (external edit)

You are here: startreferenceft_getopt
This DokuWiki features an Anymorphic Webdesign theme, customised by Eelke Spaak and Stephen Whitmarsh.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0