Eberhard-Karls-University of Tübingen, Graduate Training Center of Neuroscience, Tübingen, Germany.


Wednesday February 27 2013 up to Friday March 1 2013.


Paolo Belardinelli is the host and local organizer. Eelke Spaak and Jörn Horschig (Donders, Nijmegen, NL) are the main tutors. Paolo Belardinelli and Erick Ortiz will support the workshop.

Installing FieldTrip and Tutorial preparation

For the hands-on sessions you have to start MATLAB. To ensure that everything runs smooth, we will work with a clean and well-tested version of fieldtrip that is distributed on a USB stcik, rather than the version you might already have installed. Furthermore, the tutorial data does not have to be downloaded but will also be distributed on the USB stick.

  1. Copy the complete Tuebingen directory from the USB stick to your computer
  2. Unzip the fieldtrip-xxxxxxxx.zip file.
  3. Unzip the “data.zip” and “spm atlas.zip” file, you should place the contents in the tutorial directory.
Depending on the unzip program you are using (e.g. Winrar), the name of the zip file might also appear as directiory, resulting in path_to_directory/fieldtrip-xxxxxxxx/fieldtrip-xxxxxxxx, i.e. the fieldtrip directory in a fieldtrip directory. Please fix that by moving all files one level up.

After copying all files to your computer and unzipping then, you start MATLAB. To ensure that the right version of fieldtrip is used, and not another version (such as the one included in SPM or EEGLAB), you type in the MATLAB command window

cd path_to_directory/Fieldtrip-xxxxxxxx
Please do NOT use the graphical path management tool from MATLAB. In this hands-on session we'll manage the path from the command line, but in general you are much better off using the startup.m file than the path GUI.

Please do NOT add fieldtrip with all subdirectories, subdirectories will be added automatically when needed, but only when needed.

The restoredefaultpath command clears your path, keeping only the official MATLAB toolboxes. The addpath(pwd) statement adds the present working directory, i.e. the directory containing the fieldtrip main funcctions. The ft_defaults command ensures that all required subdirectories are added to the path.

If you get the error “can't find the command ft_defaults” you should check the present working directory.

After installing fieldtrip to your path, you change into the tutorial directory

cd path_to_directory/tutorial

Tentative program




  • morning
    • 3h playground (working on own data)