Note: While invoking the MATLAB application from the Bash command line, the path to the MATLAB executable may be undefined in your Bash terminal. Consequently, calling MATLAB on the Bash command line, for example, via, or, would lead to such error messages as the following,
bash: matlab: command not foundTo resolve the error, you need to provide the full path to the MATLAB executable. On macOS, the full path to the MATLAB executable typically is, and on Linux, where in both cases you will have to replace
R2020awith the MATLAB version installed on your system. You can also execute the following command on your Bash terminal to add a MATLAB executable alias to your
~/.bashrcfile so that every time a bash terminal is opened on your system, or when you execute
source ~/.bashrcin your current Bash session, it would automatically recognize the path to the MATLAB executable, where in the above command, you will have to replace
path_to_matlab_executablewith the correct full path to the MATLAB executable on your system. If for any reasons, you can not find the MATLAB executable's path, you can open a MATLAB session and type, to get the root installation path of MATLAB. You can find information about this command on MATLAB website. Then, add
/bin/matlabto this path to construct the full path to the MATLAB executable and repeat the above instructions again.
If you have any questions about the topics discussed on this page, feel free to ask in the comment section below or reach out to the ParaMonte library authors.