Installing Prerequisite Products
To generate C and C++ code using MATLAB® Coder™, you must install the following products:
If MATLAB is installed on a path that contains non 7-bit ASCII characters, such as Japanese characters, MATLAB Coder might not work because it cannot locate code generation library functions.
C or C++ compiler
MATLAB Coder automatically locates and uses a supported installed compiler. For the current list of supported compilers, see Supported and Compatible Compilers on the MathWorks® website.
You can use
mex -setupto change the default compiler. See Change Default Compiler.
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 necessary. See Prerequisites for Deep Learning with MATLAB Coder.
The MATLAB Coder Interface for Deep Learning is not supported for MATLAB Online™.
For instructions on installing MathWorks products, see the MATLAB installation documentation for your platform. If you have installed
MATLAB and want to check which other MathWorks products are installed, enter
ver in the MATLAB Command Window.