MATLAB: How to call an application compiled with MATLAB Compiler 4.1.1 (R14SP1+) from the desktop icon on Linux

clickcompiledcompilerdesktopiconld_library_pathlinuxMATLAB Compilerprogramsetenv

I would like to have an icon on my Linux desktop that can execute my stand-alone executable generated by the MATLAB Compiler. How can I do that?

Best Answer

You can use an icon on the Linux desktop to execute a compiled application by adding a shell script in the same directory with the application. The shell script should look as follows:
#!/bin/csh
setenv LD_LIBRARY_PATH
./yourprog
where yourprog is the name of the stand-alone executable.