Call .NET 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
- Get Started with Microsoft .NET
Examples and concepts to help you quickly get started using .NET in MATLAB
- Selecting .NET Core in MATLAB
Selecting the .NET 6 and higher run-time environment
- .NET Data Types in MATLAB
Data conversion, pass data between MATLAB and .NET
- .NET Properties in MATLAB
Get and set .NET properties in MATLAB, special features of .NET properties
- .NET Methods in MATLAB
Use .NET methods in MATLAB, method signatures, arguments by reference, optional arguments
- .NET Events and Delegates in MATLAB
Use .NET event callbacks, create and call .NET delegates
- .NET Enumerations in MATLAB
Create and combine .NET enumerations in MATLAB
- .NET Generic Classes in MATLAB
Create .NET generic classes, invoke .NET generic methods in MATLAB