Create a standalone application if you want to run MATLAB code
on target machines that do not have MATLAB installed. Compile
the MATLAB code by using the
Compiler app or by running the
To run standalone applications, install the MATLAB Runtime. For more information, see Install and Configure the MATLAB Runtime. Standalone applications run on Windows, Linux®, and Mac.
|Application Compiler||Package MATLAB programs for deployment as standalone applications|
|Build and package functions into standalone applications|
|Compile MATLAB functions for deployment|
|Compile and package functions for external deployment|
|Determine whether code is running in deployed or MATLAB mode|
|Test if code is running during compilation process (using mcc)|
|Determine version of installed MATLAB Runtime|
|Pragma to help MATLAB Compiler locate functions called through feval, eval, Handle Graphics callback, or objects loaded from MAT-files|
The Standalone Compiler App is a graphical tool for compiling and packaging standalone applications.
Using the command line compiler to create standalone applications.
How to customize the look and feel of the installer generated by the compiler app
How to ensure that the compiler includes all of the required MATLAB files when generating the application
How to include extra files to be installed along with the application
How to specify some specific runtime behaviors of the generated application
The compiler attempts to package any support packages required by an application.
Describes the steps you must follow to run MATLAB Compiler™ generated applications from a network drive
Using MATLAB data files in compiled applications
Explains the additional steps required to deploy code that uses the Parallel Computing Toolbox™
Macintosh graphical applications, launched through the Mac OS X finder utility, require additional configuration if MATLAB software or the MATLAB Runtime were not installed in default locations.
You perform the same functions using either the compiler apps
mcc command-line interface.
Restrictions regarding what can be compiled
Functions not able to be compiled with MATLAB Compiler or MATLAB Compiler SDK™
Writing MATLAB code that is sure to compile
How to pass arguments to standalone applications and run applications that use arguments
loadlibrary function in MATLAB allows
you to load shared library into MATLAB.
Basics about the dependency analysis function
MATLAB Compiler uses the MATLAB search path to analyze dependencies.
How the dependency function handles MEX-files, DLLs, and shared libraries
You typically compile your MATLAB code on a development machine, test the resulting executable on that machine, and deploy the executable and MATLAB Runtime to a test or customer machine without MATLAB.
After you have successfully compiled your application, the next step is to test it on a development machine and deploy it on a target machine.
Process to determine application failure at the end-user
Issues related to setting the MATLAB Runtime path
This appendix lists and describes error messages and warnings generated by the compiler.