Using Matlab Runtime Compiler


#1

Could you please clarify of using Matlab Runtime compiler under neurodocker. From the point if I have matlab script file how could I compile a prj with MCR. to run uit from terminal?


#2

Hi @Relyativist,

Using Matlab’s “deploytool” you can package your matlab script so it can run in an environment which doesn’t have matlab installed or a matlab licence. If your script doesn’t generate any guis, it can be compiled as a command line executable and run/called from the terminal. Have a look at the deploytool help, or maybe this tutorial: https://uk.mathworks.com/videos/getting-started-standalone-applications-using-matlab-compiler-100088.html. Once the script is compiled/deployed, you could then include it in a docker/singularity image, and share the fruits of your labour!

Hope this is what you were looking for!