Index of /examples/matlab/misc/run-matlab-standalone

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] myStandalone.m 27-Mar-2015 10:32 1.2K [TXT] mybash.txt 27-Mar-2015 10:32 709 [TXT] mycsh.txt 27-Mar-2015 10:32 731 [   ] make.m 02-Apr-2015 07:50 4.5K [   ] runBatchJob.m 29-May-2015 11:16 877 [DIR] codes2compile/ 29-May-2015 11:17 - [   ] run_standalone_job 31-May-2015 19:34 1.6K [   ] makefile.m 31-May-2015 20:04 1.8K [   ] run-matlab-standalon..> 31-May-2015 20:04 48K

How To Create A Standalone Executable from MATLAB m-files

A standalone executable is built with the MATLAB compiler mcc. You can run the standalone on a similar computer without MATLAB installed.
On such a computer, however, the MATLAB Compiler Runtime (MCR) library, available free of charge from Mathworks, must be installed.

The standaloneDemo folder

  1. makefile.m -- app-specific m-file to help make.m create exec
  2. make.m -- performs the compilation (>> make )
  3. myApp.m -- example user application's main program
  4. myStandalone.m -- optional starting m-file
  5. mybash.txt -- append to your .bashrc file
  6. mycsh.txt -- append to your .cshrc file
  7. README.html -- this file
  8. -- zip file of this directory
  9. run_standalone_job -- batch script for running standalone

Procedures for generating and running a MATLAB standalone on the SCC (or other Linux clusters)

  1. If you do not have access to Boston University's Shared Computing Cluster (SCC), you may download the file.
    Upon unzipping it, follow the steps starting from "cd run-matlab-standalone"
  2. If you have access to Boston University's Shared Computing Cluster (SCC), it is more convenient to
    scc1$ cp -r /project/scv/examples/matlab/misc/run-matlab-standalone your-preferred-path
    scc1$ cd run-matlab-standalone
    scc1$ matlab&
    >> addpath codes2compile   % to access myApp.m
    >> mcc -mv -o myExecR2013a myStandalone.m myApp.m
  3. Append mysch.txt and mybash.txt to .cshrc and .bashrc in your home directory
    scc1% cat mycsh.txt >> ~/.cshrc
    scc1% cat mybash.txt >> ~/.bashrc
  4. To make the changes effective immediately
    scc1$ source ~/.bashrc     <== if you run the bash shell
    scc1% source ~/.cshrc      <== if you run the csh shell
  5. To run executable myExecR2013a
For additional details, please visit: How to Generate a MATLAB Standalone Executable
Kadin Tseng, Research Computing Services, IS&T, Boston University
Created  : November, 2013
Modified : March, 2014
           April, 2014
           June,  2014
           July,  2014
           November, 2014
            April, 2015
Note: Research Computing Services (RCS) example programs are provided "as is" without any warranty of any kind. The user assumes the entire risk of quality, performance, and repair of any defects. You are encouraged to copy and modify any of the given examples for your own use.