When you use mcc to generate a standalone, in addition to the executable myExecR2013a, a companion run script run_myExecR2013a.sh is also produced.


  • Run interactively:
    scc1$ ./run_myExecR2013a.sh /usr/local/matlab  2000 4

    This run script expects the MCR path /usr/local/matlab in addition to other command line inputs.
    If you have multiple standalones compiled for different MATLAB releases, this could be a good alternative to the method recommended in the main page, which is ideal for standalones that are all compiled for a single MATLAB release (often the system default).

  • Run in batch mode
    scc1$ qsub ./run_standalone_shell

    Note the above batch script is different than run_standalone_job because of this change: run_myExec2013a.sh replaces myExecR2013a.