If you install Matlab or the Matlab runtime library to the default location, the scripts should find it. If you installed it somewhere else, you can set an environment variable ‘BrainSuiteMCR’ on Linux or Mac before running the script. For Linux, the default for the Matlab runtime would be:
export BrainSuiteMCR="/usr/local/MATLAB/MATLAB_Runtime/v97"
or for the full Matlab install:
export BrainSuiteMCR="/usr/local/MATLAB/R2019b/runtime"
Note that this is different for Mac.
You can also edit the scripts in the BrainSuite svreg and bdp folders, but setting an environment variable will be easier.
You shouldn’t need to do this for Windows, because Windows stores the location in its registry.
-David