I am trying to install MARSBAR toolbox into SPM12, but I am running into different problems. Initially they were all related to directory ownership and permissions (using Ubuntu 14.04), which I managed to correct, but then matlab wouldn't find the script files (extension .m). I added them manually to the path, and that worked out.
Finally, and here is the point I can't go through, when I run marsbar
in MATLAB I keep running into:
>> marsbar
MarsBaR analysis functions prepended to path
Undefined function or variable 'marmoire'.
Error in marsbar (line 125)
o = marmoire;
Error in marsbar (line 57)
marsbar('on');
Even though the function marmoire that it is complaining about IS on the path and with proper permissions! <- Actually not, see below.
Googling the error took me to a lot of different complaints from users that had difficulties about running it on SPM12 1 2, however none were quite the same as the problem I've been facing.
Also, the documentation for the toolbox is quite outdated now, it seems.
Any light here would be greatly appreciated!
UPDATE 6.1.16 As per suggestion in the comments I added two lines before marsbar calls marmoire.
Now the error is:
>> marsbar
MarsBaR analysis functions prepended to path
Undefined function or variable 'marmoire'.
Error in marsbar (line 125)
which marmoire
Error in marsbar (line 57)
marsbar('on');
Which means that marmoire is not actually in the proper path, however I copied it to the same directory as marsbar:
And the problem persists.
marsbar
in the Matlab prompt and then it works without a hickup. Stay strong, friends -- SPM is an awful tool, but it can and does work after you've pulled all your hair out. :) $\endgroup$