Llamar 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. La API permite que los programas inicien MATLAB, evalúen funciones de MATLAB con argumentos e intercambien datos entre MATLAB y los programas de .NET.
Si necesita mantener programas de .NET existentes creados para la versión R2022a de MATLAB o una versión anterior que funcionen con el Modelo de objetos componentes (COM) de Microsoft®, consulte Escribir aplicaciones COM que funcionen con MATLAB.
Para acceder a bibliotecas de .NET directamente desde MATLAB, consulte Llamar a .NET desde MATLAB.
Funciones
Clases
Temas
Configurar y crear aplicaciones para el motor
- Requirements to Build .NET Engine Programs
Set environment variables, and compile and run your .NET code. - Test Your .NET Development Environment
Confirm your development environment for the MATLAB .NET engine.
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.
Uso de la API del motor de MATLAB para .NET
- Elements of a .NET Engine Program
Get started with MATLAB Engine API for .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. - 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.