Main Content

System Requirements for Using MATLAB Interface to .NET

The MATLAB® interface supports:

  • .NET Framework 4.0 Runtime and higher (Microsoft® Windows®)

  • .NET Desktop Runtime 6.0 and higher (Microsoft Windows)

  • .NET Runtime 6.0 and higher (macOS and Linux®)

The interface continues to support assemblies targeting .NET Core, and assemblies targeting Microsoft .NET Framework Version 2.0 and higher. By default, MATLAB uses the latest version of .NET found on your system. For information about .NET versions compatible with MATLAB, see MATLAB Interfaces to Other Languages.

To determine if your system has a supported version, use the NET.isNETSupported function. To change the run-time environment, call dotnetenv.

To use a .NET application, refer to your vendor product documentation for information about how to install the program and for details about its functionality.

Change .NET Core Settings

The dotnetenv function lets you change settings for the .NET Runtime environment. For example, you can select a specific numerical version using the Version name-value argument. To choose a target framework, use the Frameworks name-value argument. For example:

ne = dotnetenv("core",Version="8",Frameworks="Microsoft.WindowsDesktop.App");

MATLAB Configuration File for Microsoft .NET Framework

MATLAB provides a configuration file matlabroot/bin/win64/MATLAB.exe.config for Microsoft .NET Framework which loads the latest core assemblies available on your system. You can modify and use the configuration file at your own risk.

For more information about the configuration file schema for .NET Framework, refer to Microsoft .NET Framework documentation.

See Also

|

Topics