Index of /examples/matlab/Tutorials/Archive/Previous/orig/misc/run-matlab-standalone

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[DIR]codes2compile/ 2021-04-16 08:59 -  
[   ]make.m 2015-04-02 07:50 4.5K 
[   ]makefile.m 2015-05-31 20:04 1.8K 
[   ]myStandalone.m 2015-03-27 10:32 1.2K 
[TXT]mybash.txt 2015-03-27 10:32 709  
[TXT]mycsh.txt 2015-03-27 10:32 731  
[   ]run-matlab-standalon..>2015-05-31 20:04 48K 
[   ]runBatchJob.m 2015-05-29 11:16 877  
[TXT]run_standalone_job 2015-05-31 19:34 1.6K 

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. run-matlab-standalone.zip -- 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 standaloneDemo.zip 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.