System Requirements for Using MATLAB Interface to .NET - MATLAB & Simulink (original) (raw)
Main Content
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, calldotnetenv.
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 theVersion name-value argument. To choose a target framework, use theFrameworks 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
dotnetenv | NET.isNETSupported