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 you can download here). Importantly, the tutorial data does not have to be downloaded but we strongly recommend to download before the workshop at ftp://ftp.fieldtriptoolbox.org/pub/fieldtrip/fieldtrip-20160531.zip
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
restoredefaultpath cd path_to_directory/fieldtrip-20160531 addpath(pwd) ft_defaults
Please do NOT add fieldtrip with all subdirectories, subdirectories will be added automatically when needed, and 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 functions. 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