[FieldTrip] [multivariate] "multivariate" subdirectory not included upon "addpath" of FieldTrip root directory

Kanal Eliezer ekanal at cmu.edu
Wed May 25 14:53:53 CEST 2011

Hello Sander -

Just so you know, there is a way to recursively add folders to a path, using the `genpath` command:


However, as you said, it's probably just a better idea to add it to the `ft_defaults` file so it's added automatically, as you suggested.


On May 25, 2011, at 6:13 AM, Sander Maijers wrote:

> Dear readers,
> While all other functional subdirectories do get included after an
> "addpath" of the FieldTrip root directory, the "multivariate"
> subdirectories does not get included.
> It assume this is because of automatical detection that requirements of
> the FieldTrip multivariate module were not met.
> Yet while some parts of the multivariate module seem to rely on
> features exclusive to MATLAB 64-bit editions, others (like the ridge
> regression functionality) do not.
>> From my (tentative) investigation it appears that there is no standard
> way to add a path recursively from a startup.m file, even though that
> can be done with the graphical interface of MATLAB. 
> What are your thoughts about this? 
> Can anyone offer a method to automatically add FieldTrip including the
> multivariate module to the path upon startup of MATLAB that works in
> my situation?
> Kind regards,
> Sander Maijers
> P.S.:
> In case it would be relevant: I use MATLAB R2011a 32-bit under 64-bit
> Linux.
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

More information about the fieldtrip mailing list