Appeler MATLAB à partir de .NET
MATLAB Engine API pour .NET propose une interface entre les langages de programmation .NET et MATLAB. Elle permet aux programmes de lancer MATLAB, d’évaluer les fonctions MATLAB avec des arguments et d’échanger des données entre MATLAB et des programmes .NET.
Pour accéder à des bibliothèques .NET directement depuis MATLAB, consultez Appeler .NET à partir de MATLAB.
Si vous devez maintenir des programmes .NET existants créés pour MATLAB R2022a ou version antérieure, qui fonctionnent avec Microsoft® Component Object Model (COM), consultez Écrire des applications COM fonctionnant avec MATLAB.
Fonctions
Classes
Rubriques
Configurer et compiler des applications Engine
- Elements of a .NET Engine Program
Get started with MATLAB Engine API for .NET.
Démarrer MATLAB à partir d’une application .NET
- Start MATLAB Session from .NET
Start a .NET engine session synchronously or asynchronously, and 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.
Mapping de données
- Pass .NET Data Types to MATLAB Functions
Convert .NET data to MATLAB data. - Handle MATLAB Data in .NET Applications
Convert MATLAB data to .NET data. - Strongly Typed Interface for C#
A strongly typed interface enforces a strict data type mapping between MATLAB and C# to use in .NET applications.
Appeler des fonctions MATLAB à partir de .NET
- Execute MATLAB Functions from .NET
Pass variables to MATLAB function calls and return values to .NET applications. - Use MATLAB Structures in .NET
Define MATLAB structure data types in .NET using theMathWorks.MATLAB.Types.MATLABStruct
class. - Use MATLAB Dictionary Objects in .NET
These examples show how to pass dictionary variables to MATLAB function calls and return dictionary values to .NET applications. - Use MATLAB Handle Classes in C#
Integrate MATLAB handle classes with C# applications.
Résolution des problèmes
MathWorks.MATLAB.Exceptions Exception Classes for .NET
The MathWorks.MATLAB.Exceptions
namespace contains the
exception classes for the .NET engine.