FT_EXAMPLEFUNCTION

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

  FT_EXAMPLEFUNCTION demonstrates to new developers how a FieldTrip function should look like
 
  Use as
   outdata = ft_examplefunction(cfg, indata) 
  where indata is <<describe the type of data or where it comes from>> 
  and cfg is a configuratioun structure that should contain 
 
  <<note that the cfg list should be indented with two spaces
 
   cfg.option1    = value, explain the value here (default = something)
   cfg.option2    = value, describe the value here and if needed
                    continue here to allow automatic parsing of the help
 
  The configuration can optionally contain
    cfg.option3   = value, explain it here (default is automatic)
 
  To facilitate data-handling and distributed computing with the peer-to-peer
  module, this function has the following options:
    cfg.inputfile   =  ...
    cfg.outputfile  =  ...
  If you specify one of these (or both) the input data will be read from a *.mat
  file on disk and/or the output data will be written to a *.mat file. These mat
  files should contain only a single variable, corresponding with the
  input/output structure.
 
  See also <<give a list of function names, all in capitals>>

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

You are here: startreferenceft_examplefunction
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