Llame a MATLAB desde .NET
La API del motor de MATLAB para .NET ofrece una interfaz entre los lenguajes de programación de .NET y MATLAB. Esta API permite que los programas inicien MATLAB, evalúen funciones de MATLAB con argumentos e intercambien datos entre MATLAB y los programas de .NET.
Para acceder a las bibliotecas de .NET directamente desde MATLAB en su lugar, consulte Llamar a .NET desde MATLAB.
Si necesita mantener programas de .NET existentes creados para MATLAB R2022a o versiones anteriores que funcionen con Microsoft® Component Object Model (COM), consulte Escribir aplicaciones de COM que funcionen con MATLAB.
Funciones
Clases
Temas
Configurar y crear aplicaciones del motor
- Elements of a .NET Engine Program
Get started with MATLAB Engine API for .NET.
Iniciar MATLAB desde una aplicación de .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.
Aplicación de datos
- 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.
Llamar a funciones de MATLAB desde .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.
Solución de problemas
MathWorks.MATLAB.Exceptions Exception Classes for .NET
The MathWorks.MATLAB.Exceptions
namespace contains the
exception classes for the .NET engine.