Main Content

Installing and Configuring Prerequisite Products

To generate C and C++ code by using MATLAB® Coder™, you must install these products:

  • MATLAB

  • A supported C or C++ compiler

When one or more supported C or C++ compilers are installed, MATLAB Coder automatically locates and uses the default compiler. For an up-to-date list of supported compilers, see Supported and Compatible Compilers on the MathWorks® website.

Note

If MATLAB is installed on a path that contains non 7-bit ASCII characters, such as Japanese characters, code generation might fail because the code generator is unable to locate code generation library functions.

Change the Default Compiler

To change the default compiler, use the mex function with the -setup option:

mex -setup
When you execute this command, MATLAB displays available compiler options for your MATLAB version and operating system.

You can use mex -setup to change the default compiler. See Change Default Compiler. If you generate C++ code, see Choose a C++ Compiler.

Generate Code for Deep Learning Networks

To use MATLAB Coder to generate code for deep learning networks, you must also install:

  • Deep Learning Toolbox™

  • MATLAB Coder Interface for Deep Learning

To generate code for deep learning networks, additional third-party libraries and setup steps might be required. See Prerequisites for Deep Learning with MATLAB Coder.

The MATLAB Coder Interface for Deep Learning is not supported for MATLAB Online™.

See Also

|

Topics

External Websites