Setting Up the 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 -setup
to change the default compiler. See Change Default Compiler. If you
generate C++ code, see Choose a C++ Compiler.