
Here is an example script which uses the MCR.
Matlab r2013a documentation install#
If the version of MCR that you need is not listed among the MCR module versions, contact us and we will install the version which you require. The MCR used must be the same version of MATLAB as the compiler. Once the compilation is done, the executable and its run script ( run_SOMETHING.sh) can be copied to SciNet, and run using the MATLAB Compiler Runtime (MCR), which can be accessed using the MCR module. Using a MATLAB stand-alone executable on Niagara Note: The compilation of a matlab code produces two files, e.g., compiling myscript.m will produce a file myscript and a file run_myscripts.sh. The version of MATLAB being used will require a compiler license, and the compilation must be done on a Linux machine (not Niagara). If MATLAB must be used, you may be able to compile your MATLAB code into a stand-alone executable, and run this on a Niagara compute node. Using stand-alone MATLAB executables Creating a MATLAB stand-alone executable If you can switch to a license-free option, such as Python, it may be worth the effort. These include the prohibitive license cost for large-scale work, poor performance at scale, and portability issues. It is worth observing that, while convenient for prototyping and running on a single workstation, there are reasons to avoid using MATLAB for larger HPC/ARC projects. Be sure to test your implementation in Octave thoroughly before committing to this option. If your MATLAB code does not use some of the more-fancy MATLAB toolboxes, you may be able to get away with using Octave instead. Though there are some differences between the two programs, Octave has been designed to interpret MATLAB code and can often be used in place of MATLAB.


Users can attempt to run MATLAB code using the open-source program Octave, accessible through the octave module.

2.1 Creating a MATLAB stand-alone executable.
