MATLAB and Simulink Requirements

Supported and Compatible Compilers - Windows

A number of MathWorks products or product features require that you have a third-party compiler installed on your system. The tables below outline the compilers that are supported by various MathWorks products. These compilers are provided by a number of vendors and are available under a variety of commercial, academic, or open source terms; visit the providers' websites for further information.

Please see Polyspace documentation for the list of compilers that Polyspace supports in the current release. See Supported Interfaces to Other Languages for information about using MATLAB with other programming languages.

Other Platforms: Mac | Linux


MinGW is a supported C/C++ compiler which is available free of charge.

Note:

  • Intel Parallel Studio XE 2019 for C/C++ and Fortran is not supported as of R2022b.

Windows

MATLAB Product Family

Compiler MATLAB MATLAB Coder GPU Coder
SimBiology Fixed-Point Designer HDL Coder HDL Verifier Audio Toolbox ROS Toolbox
For MEX-file compilation, loadlibrary, C++ interface, and external usage of MATLAB Engine and MAT-file APIs For all features For all features

For accelerated computation For accelerated computation  For accelerated testbench simulation  For DPI and TLM component generation For validating and generating audio plugins For custom messages and code generation

MinGW 6.3 C/C++ (Distributor: mingw-w64)

Download Now

Available at no charge

                 
Microsoft Visual C++ 2022 product family                1  1
Microsoft Visual C++ 2019 product family                1  1
Microsoft Visual C++ 2017 product family 6    

         1  1
Intel oneAPI 2021 for C/C++                  
Intel Parallel Studio XE 2020 for C/C++ 3                  
Intel oneAPI 2021 for Fortran                  
Intel Parallel Studio XE 2020 for Fortran 3                  

Simulink Product Family

Compiler Simulink Simulink Stateflow Simulink Compiler Simulink Coder Embedded Coder SerDes Toolbox
For S-Function compilation For Model Referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks For all features For all features For all features When targeting the host OS For IBIS-AMI model generation
MinGW 6.3 C/C++ (Distributor: mingw-w64) Available at no charge
Microsoft Visual C++ 2022 product family  
Microsoft Visual C++ 2019 product family
Microsoft Visual C++ 2017 product family 6
Intel oneAPI 2021 for C/C++ 4          
Intel Parallel Studio XE 2020 for C/C++ 3 4 5      
Intel oneAPI 2021 for Fortran 4            
Intel Parallel Studio XE 2020 for Fortran 3 4            

MATLAB Compiler

Compiler MATLAB Compiler MATLAB Compiler SDK
Excel add-in for desktop C/C++ COM .NET Excel add-in for MPS

MinGW 6.3 C/C++ (Distributor: mingw-w64)

Available at no charge

2
2
   
Microsoft Visual C++ 2022 product family  
Microsoft Visual C++ 2019 product family  
Microsoft Visual C++ 2017 product family 6



 
.NET Framework 4.6.2 or higher      
.NET and .NET Core 3.1 or higher        

The following products include lcc-win64 when installed: Simulink, MATLAB Coder, SimBiology, Fixed-Point Designer, HDL Coder, HDL Verifier, Stateflow, Simulink Coder, and Embedded Coder. This compiler is no longer supported and will be removed in a future release of MATLAB and Simulink. MathWorks recommends you install one of the other compilers listed on this page when using these products.

Notes for the Windows Platform

  1. The corresponding version of Visual Studio Community may work, but full support for Visual Studio Community has not been qualified by MathWorks.
  2. Microsoft Windows SDK 10 is required to use MinGW with this product. See Answer 355476 for more details.
  3. Intel compilers require that Microsoft Visual Studio 2017, 2019, or 2022 also be installed on your system. The Intel compiler version must be equal to or newer than the Microsoft Visual Studio version.
  4. Fortran compilers are supported with Simulink only for creating Simulink S-Functions using the MATLAB MEX command. The S-Functions can be used with normal and accelerated simulations.
  5. MATLAB Function Blocks are not supported with Intel Parallel Studio.
  6. Visual Studio 2017 can be downloaded from the Visual Studio documentation. Community, Professional, and Enterprise editions are supported. The Visual Studio installer groups functionality into workloads; the "Desktop development with C++" workload is required for MEX and associated functionality.