Call MATLAB from .NET
The MATLAB Engine API for .NET provides an interface between .NET programming languages and MATLAB. This API enables programs to launch MATLAB, evaluate MATLAB functions with arguments, and exchange data between MATLAB and .NET programs.
If you need to maintain existing .NET programs created for MATLAB R2022a or earlier that work with the Microsoft® Component Object Model (COM), see Write COM Applications to Work with MATLAB.
To access .NET libraries directly from MATLAB instead, see Call .NET from MATLAB.
MATLAB Engine for .NET
MATLAB Data API for .NET
|.NET class to represent pointers to MATLAB arrays|
|.NET class to represent scalar instances of MATLAB classes|
|.NET class to manage interactions with MATLAB base workspace variables|
|.NET class to specify options for MATLAB function evaluation|
Set Up and Build Engine Applications
Use MATLAB Engine API for .NET
- Elements of a .NET Engine Program
Get started with the MATLAB Engine API for .NET.
- Start MATLAB Session from .NET
Start a .NET engine session synchronously or asynchronously, pass startup options to MATLAB.
- Connect .NET Application to Running MATLAB Session
Connect the .NET engine to a running MATLAB session that has been started as or converted to a shared session.
- Execute MATLAB Functions from .NET
Pass variables to MATLAB function calls and return values to .NET applications.
Risoluzione dei problemi
MathWorks.MATLAB.Exceptions namespace contains the
exception classes for the .NET engine.