Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Fri Nov 28 11:04:43 CET 2008

Hi Marco,

To me it seems to suggest that you are using an older version of the
sourecanalysis.m file with a newer version of the private directory.
The createsubcfg function has recently been removed and the
functionality replaced by checkconfig. Please update to a fully
cnosistent latest FT version and try again.

best regards,

PS renaming private and adding it to your path indeed is not
recommeded and should not be needed. However, recently we have done
quite some restructuring of the directory layout within fieldtrip, and
that has not yet completely stabilized. So sometimes indeed a private
function might be misplaced, and then the suggestion from Thomas may

On 27 Nov 2008, at 12:05, Marco SPERDUTI wrote:

> ecah time i use sourceanalysis i have this error:
> ??? Undefined command/function 'createsubcfg'.
> Error in ==> sourceanalysis at 549
> cfg = createsubcfg(cfg, cfg.method);

The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also and

More information about the fieldtrip mailing list