Edit this page
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 command line via,
would lead to such error messages as the following,
If for any reasons, you can not find the MATLAB executable's path, you can open a MATLAB session via the Linux / macOS search software. Once MATLAB session is open, type in the MATLAB command line, to get the root installation path of MATLAB. You can find information about this command on MATLAB website. Then, add
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
R2023a
with 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 ~/.bashrc
file so that every time a bash terminal is opened on your system, or when you execute source ~/.bashrc
in 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_executable
with 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 via the Linux / macOS search software. Once MATLAB session is open, type in the MATLAB command line, to get the root installation path of MATLAB. You can find information about this command on MATLAB website. Then, add
/bin/matlab
to 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 raise an issue on the GitHub page of the library, or reach out to the ParaMonte library authors.