Main Content

Call .NET from MATLAB

Directly call .NET library functionality from MATLAB®

The Microsoft® interface to .NET provides a large body of precoded solutions to common program requirements. You can create instances of .NET classes and interact with .NET applications from MATLAB.

MATLAB supports loading .NET assemblies, including:

  • .NET Framework (Microsoft Windows®)

  • .NET, including .NET Core (Microsoft Windows, macOS, and Linux®)

For details, see System Requirements for Using MATLAB Interface to .NET. 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 .NET run-time environment, call dotnetenv.

If instead you want to call MATLAB functions from .NET applications, see Call MATLAB from .NET.

Categories

Related Information