MarsBar includes some spm files in its directory (eg spm_get.m,
spm_create_image.m), but it includes these for older versions of spm as
well. Presumably MarsBar was installed after SPM, so by default it is
ahead of SPM in the path. That means that when two files have the same
name, Matlab will use the files in the MarsBar folder instead of the SPM
folder. My guess is that Matlab was calling a file from the MarsBar
toolbox that was from the wrong version of SPM. Personally, I like to
make sure any toolbox I install isn't changing anything outside of the
toolbox, so I always move their directories to the bottom of the path.
If you do the same with MarsBar, you should be able to use it and SPM
without any problems.
-Neil
Ming-Tsung Tseng wrote:
> Ya.
>
> It's weird that, after I removed the directory "MarsBar", everything went well.
>
> So, does it mean that we are not recommended to add "too many" directories
> in Matlab path while running SPM5 if they are not really necessary "at once"?
>
> Anyway, thanks for your help.
>
> Tseng
>
|