Input and Output Files

Standalone Executable

In this example, MATLAB® Compiler™ takes the MATLAB files foo.m and bar.m as input and generates a standalone called foo.

mcc -m foo.m bar.m

File

Description

foo

The main file of the application. This file reads and executes the content stored in the embedded deployable archive. On Windows®, this file is foo.exe.

run_component.sh

mcc generates run_<component>.sh file on Linux® and Mac OS X systems for standalone applications. It temporarily sets up the environment variables needed at runtime and executes the application. On Windows, mcc doesn't generate this run script file, because the environment variables have already been set up by the installer. In this case, you just run your standalone .exe file.

Macintosh 64 (Maci64)

For 64-bit Macintosh, a Macintosh application bundle is created.

File

Description

foo.app

The bundle created for executable foo. Execution of the bundle occurs through foo.app/Contents/MacOS/foo.

foo

Application

run_component.sh

The generated shell script which executes the application through the bundle.

Was this topic helpful?