What does a typical call to a FieldTrip function look like?

All high-level FieldTrip functions take a configuration input structure as first input argument. The FieldTrip functions in general work like this

dataout = functionname(cfg);               % e.g. ft_preprocessing
dataout = functionname(cfg, datain, ...);  % e.g. ft_freqanalysis
functionname(cfg, datain, ...);            % e.g. plotting functions 

Type 'help functionname' to see which input arguments (cfg.xxx) ought to be defined before calling the function. The datain and dataout arguments to all FieldTrip main functions can be categorized in a limited number of data types, all of which are structures with a characteristic set of fields. The different datatypes are described here.

faq/what_does_a_typical_call_to_a_fieldtrip_function_look_like.txt · Last modified: 2010/12/23 11:16 by robert

You are here: startfaqwhat_does_a_typical_call_to_a_fieldtrip_function_look_like
CC Attribution-Share Alike 3.0 Unported
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
This DokuWiki features an Anymorphic Webdesign theme, customised by Eelke Spaak and Stephen Whitmarsh.
Mobile Analytics Website Security Test