Deploying MATLAB code on MAC.
Apparently it’s possible to deploy/compile MATLAB code, following instructions from here:
First you need to run:
Add the main function and the helper files. After done, install mcr that can be found here.
To be able to run the code you need to set the environment variable DYLD_LIBRARY_PATH to the folders list in the README file under the created project folder. The README file says to run the command setenv on your MAC. setenv may not be part of the bash shell. Therefore, you should run the following command:
Where <mcr_root> is the path of the Matlab runtime compiler.
Also you can upload the code directly to the file ~/.cshrc