Main Content

MATLAB Compiler Licensing

R2026b

License Checkout When Compiling

You can compile MATLAB® code from the MATLAB Command Window or from the system command prompt. How long you hold the MATLAB Compiler™ license depends on where you compile.

Compile from MATLAB Command Window

When you compile MATLAB code from the MATLAB Command Window or a compiler app, the MATLAB Compiler license stays checked out until you exit MATLAB.

Compile from System Command Prompt

When you run mcc from the system command prompt to compile MATLAB code, mcc checks out the MATLAB Compiler license when compilation starts and returns it when compilation completes. MATLAB does not need to be running.

No License Available

If no MATLAB Compiler license is available when you compile MATLAB code, you get this error:

Error: Could not check out a Compiler License.

To avoid this error, make sure that enough MATLAB Compiler licenses are available for everyone who compiles at the same time. If you compile from MATLAB, you hold your license until you exit MATLAB.

See Also

Topics