Matlab does not see the functions in the "private" directory

The functions in the fieldtrip/private directory are only available for functions that are located in fieldtrip. You cannot call them from the command line, and you cannot call them from functions (or scripts) that are located outside the fieldtrip directory.

See for more general information.

The private directory provides a convenient way of separating the high-level functions that a normal user would call (i.e. the User Interface to the toolbox) and the low-level functions. However, if you are a “power user” and also want to directly call the low-level functions, you can do the following:

(on the unix command line, or using a Windows equivalent)

cd /your/path/to/fieldtrip
mv private ../fieldtrip_private

(on the Matlab prompt)

addpath /your/path/to/fieldtrip
addpath /your/path/to/fieldtrip_private

If you are using FieldTrip within the F.C. Donders Centre, you can add the following two lines to your startup.m file.

addpath /home/common/matlab/fieldtrip
addpath /home/common/matlab/fieldtrip_private
faq/matlab_does_not_see_the_functions_in_the_private_directory.txt · Last modified: 2011/09/28 12:03 by jan-mathijs

You are here: startfaqmatlab_does_not_see_the_functions_in_the_private_directory
CC Attribution-Share Alike 3.0 Unported 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