Open MMangnus opened 2 years ago
Thanks for the improvement suggestion! I have updated the Bayesian_inference.m function. You may also be interested in BayInf toolbox: https://github.com/Masharipov/Bayesian_inference In the BayInf toolbox all scripts use [path filesep 'restOfTheFilename'] lines. Reference paper: https://doi.org/10.3389/fninf.2021.738342
The use of the backslash in lines 75, 83 and 94 in the Bayesian_inference.m script doesn't work well when using a Linux environment, since the default file separator there is a forward slash. In this case, the saved files end up in the folder above the one specified in
path
, interfering with later analyses with the SPM.mat file.If these lines could be written as
[path filesep 'restOfTheFilename']
, I think this would improve compliance with other operating systems.