MATLAB and Simulink Requirements

Product Requirements for Simulink R2022a

  • Requires MATLAB
  • Some features require the use of a C Compiler.
  • Fixed-Point Designer required for simulating fixed-point data types

View requirements for another product:

Supported Third-Party Compilers

System and Product Requirements for Previous Releases

Supported Windows Compilers for Simulink

For S-Function compilation

  • Microsoft Visual C/C++ 2022 product family
  • Microsoft Visual C++ 2019 product family
  • Microsoft Visual C++ 2017 product family1
  • Intel oneAPI 2021 for C/C++
  • Intel Parallel Studio XE 2020 for C/C++
  • Intel Parallel Studio XE 2019 for C/C++4
  • Intel oneAPI 2021 for Fortran
  • Intel Parallel Studio XE 2020 for Fortran
  • Intel Parallel Studio XE 2019 for Fortran4

For Model Referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks

  • Microsoft Visual C/C++ 2022 product family
  • Microsoft Visual C++ 2019 product family
  • Microsoft Visual Studio C++ 2017 product family1
  • Intel oneAPI 2021 for C/C++
  • Intel Parallel Studio XE 2019 for C/C++1

Notes for the Windows Platform

  1. MATLAB Function Blocks are not supported with Intel Parallel Studio.
  2. 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.
  3. Intel compilers require that Microsoft Visual Studio 2017, 2019, or 2022 also be installed on your system.
  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.

Supported macOS Compilers for Simulink

On the Mac, no C compiler is supplied with MATLAB. If you use products that require one, Apple's development environment for macOS (Xcode) isavailable in the Mac App Store.

For S-Function compilation

  • Xcode 13.x
  • Xcode 12.x
  • Intel oneAPI 2021 for Fortran
  • Intel Parallel Studio XE 2019 for Fortran

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.

For model referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks

  • Xcode 13.x
  • Xcode 12.x

To determine the version of Xcode installed, start Xcode and then select Xcode->About Xcode.

Supported Linux (64-bit) Compilers for Simulink

On Linux, no C compiler is supplied with MATLAB. The GNU compiler (GCC) is included with many Linux distributions.

For S-Function compilation

  • GCC C/C++ 7.x, 8.x, and 9.x
  • GNU GFortran 8.x

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.

For model referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks

  • GCC C/C++ 7.c, 8.x, and 9.x
  • GNU GFortran 8.x

To determine the version of your compiler, seeAnswer 99897.