MATLAB: Run app created in Matlab on Mac

macmex compiler

Good day! Could anyone please tell me how to run application created in Matlab on Mac? My situation is:
I don't have Matlab on Mac, but I've installed MCR, and I can't understand lines in readme.txt file:
setenv DYLD_LIBRARY_PATH
<mcr_root>/v711/runtime/maci64:
<mcr_root>/v711/sys/os/maci64:
<mcr_root>/v711/bin/maci64:
/System/Library/Frameworks/JavaVM.framework/JavaVM:
/System/Library/Frameworks/JavaVM.framework/Libraries
setenv XAPPLRESDIR <mcr_root>/v711/X11/app-defaults
So what should I do according these lines???

Best Answer

You need to set two environment variables to the following.
DYLD_LIBRARY_PATH and XAPPLRESDIR. The mcr_root is the location where you installed the MCR.
Open a Terminal: Execute the commands above (replacing mcr_root with actual location), navigate to where you have the Matlab app, and run it.