Adding FieldTrip to Brainstorm

Hi

When adding FieldTrip to MatLab - could you advise where I do this? Do I add the below code to the stack window or is there a MatLab file I should add it to?

restoredefaultpath
addpath /home/common/matlab/fieldtrip
ft_defaults

I added a short description in the tutorials:
https://neuroimage.usc.edu/brainstorm/Tutorials/Statistics#FieldTrip_implementation

Thanks for pointing out that it was missing in the documentation

Hi Francois,

Thank you. I have the unzipped Fieldtrip folder on windows desktop. When I open preferences, under folders, I only have 'Temporary directory'. I don't see 'fieldtrip toolbox' or 'SPM toolbox'.

If you are using the compiled version of Brainstorm, the FieldTrip and SPM functions have been compiled together in the same package (it is not possible to use non-compiled .m files from a compiled Matlab program). I edited the tutorials to make this clearer.

Thank you Francois.