Main Content

MATLAB Compiler SDK Licensing

Use MATLAB Compiler SDK Licenses for Development

You can run the MATLAB® Compiler SDK™ compiler from the MATLAB command prompt or the system prompt.

MATLAB Compiler SDK uses a lingering license. This means that when the MATLAB Compiler SDK license is checked out, a timer is started. When that timer reaches 30 minutes, the license key is returned to the license pool. The license key will not be returned until that 30 minutes is up, regardless of whether mcc has exited or not.

Each time a compiler command is issued, the timer is reset.

Running MATLAB Compiler SDK in MATLAB Mode

When you run MATLAB Compiler SDK from “inside” of the MATLAB environment, that is, you run mcc from the MATLAB command prompt, you hold the MATLAB Compiler SDK license as long as MATLAB remains open. To give up the MATLAB Compiler SDK license, exit MATLAB.

Running MATLAB Compiler SDK in Standalone Mode

If you run MATLAB Compiler SDK from a DOS or UNIX® prompt, you are running from “outside” of MATLAB. In this case, MATLAB Compiler SDK

  • Does not require MATLAB to be running on the system where MATLAB Compiler SDK is running

  • Gives the user a dedicated 30-minute time allotment during which the user has complete ownership over a license to MATLAB Compiler SDK

Each time a user requests MATLAB Compiler SDK, the user begins a 30-minute time period as the sole owner of the MATLAB Compiler SDK license. Anytime during the 30-minute segment, if the same user requests MATLAB Compiler SDK, the user gets a new 30-minute allotment. When the 30-minute interval has elapsed, if a different user requests MATLAB Compiler SDK, the new user gets the next 30-minute interval.

When a user requests MATLAB Compiler SDK and a license is not available, the user receives the message

Error: Could not check out a Compiler License.

This message is given when no licenses are available. As long as licenses are available, the user gets the license and no message is displayed. The best way to guarantee that all MATLAB Compiler SDK users have constant access to MATLAB Compiler SDK is to have an adequate supply of licenses for your users.