Main Content

Chiamata di MATLAB da .NET

Scrivere programmi .NET che lavorano con MATLAB®

L'API di MATLAB Engine per .NET fornisce un’interfaccia tra i linguaggi di programmazione .NET e MATLAB. Questa API consente ai programmi di avviare MATLAB, valutare le funzioni con argomenti di MATLAB e scambiare dati tra MATLAB e i programmi .NET.

Invece, per accedere alle librerie .NET direttamente da MATLAB, vedere Chiamata di .NET da MATLAB.

Se è necessario mantenere i programmi .NET esistenti creati per MATLAB R2022a, o release precedenti, che lavorano con il modello a oggetti per componenti (COM) di Microsoft®, vedere Scrittura di applicazioni COM per lavorare con MATLAB.

Funzioni

espandi tutto

matlab.engine.shareEngineConvert running MATLAB session to shared session
matlab.engine.engineNameReturn name of shared MATLAB session
matlab.engine.isEngineSharedDetermine if MATLAB session is shared
matlab.engine.typedinterface.generateCSharpGenerate C# code interface for MATLAB namespaces, classes, and functions (Da R2023b)

Classi

espandi tutto

MathWorks.MATLAB.Engine.MATLABEngine .NET class using MATLAB as a computational engine (Da R2022b)
MathWorks.MATLAB.Types.MATLABArray.NET class to represent pointers to MATLAB arrays (Da R2022b)
MathWorks.MATLAB.Types.MATLABObject.NET class to represent scalar instances of MATLAB classes (Da R2022b)
MathWorks.MATLAB.Types.MATLABStruct.NET class to represent scalar MATLAB structures (Da R2023a)
MathWorks.MATLAB.Types.MATLABWorkspace.NET class to manage interactions with MATLAB base workspace variables (Da R2022b)
MathWorks.MATLAB.Types.RunOptions.NET class to specify options for MATLAB function evaluation (Da R2022b)
MathWorks.MATLAB.Types.MATLABProvider.NET base class for invoking MATLAB functions (Da R2023b)

Argomenti

Impostazione e compilazione di applicazioni engine

Avvio dell'applicazione MATLAB da .NET

Chiamata delle funzioni di MATLAB da .NET

Risoluzione dei problemi

MathWorks.MATLAB.Exceptions Exception Classes for .NET

The MathWorks.MATLAB.Exceptions namespace contains the exception classes for the .NET engine.

Informazioni complementari