La traducción de esta página está obsoleta. Haga clic aquí para ver la última versión en inglés.
API del motor MATLAB para C++
Ejecutar código de MATLAB® desde programas de C++, con soporte de programación orientada a objetos y ejecución asincrónica
La API del motor MATLAB para C++ ofrece una interfaz entre el lenguaje de programación de C++ y MATLAB. La API permite que los programas de C++ inicien MATLAB, evalúen funciones de MATLAB con argumentos e intercambien datos con MATLAB.
Esta API del motor MATLAB es compatible con la API de datos de MATLAB. Gracias a ella, las aplicaciones que se ejecutan fuera de MATLAB pueden funcionar con los datos de esta plataforma a través de una interfaz neutral de MATLAB. Para obtener más información sobre la API de datos de MATLAB, consulte API de datos de MATLAB.
Temas
Configurar y crear aplicaciones para el motor
- Introduction to Engine API for C++
Introduction to the basic design of a C++ engine program. - Build C++ Engine Programs
Build engine applications on different platforms. - Test Your Build Environment
Use this sample code to confirm your development environment for the MATLAB Engine API for C++. - C++ Engine API
The MATLAB Engine C++ API comprises functions, classes, and typedefs inmatlab::engine
namespace.
Iniciar MATLAB y conectarse a la plataforma
- Start MATLAB Sessions from C++
Start and connect to a MATLAB session synchronously and asynchronously from C++. - Connect C++ to Running MATLAB Session
Connect the C++ engine to a MATLAB session that has been started as or converted to a shared session.
Llamar a funciones e intercambiar datos
- Call MATLAB Functions from C++
Call MATLAB functions from C++, passing variable to MATLAB and returning variables to C++. - Evaluate MATLAB Statements from C++
Evaluate MATLAB expression from C++ and write variables into the MATLAB base workspace. - Pass Variables from C++ to MATLAB
Pass variables from C++ to MATLAB as function arguments or by placing those variables directly in the MATLAB base workspace. - Pass Variables from MATLAB to C++
Get variables from the MATLAB base or global workspace. - Redirect MATLAB Command Window Output to C++
Redirect MATLAB command window output, including error messages, to you C++ program. - Run Simulink Simulation from C++
Run Simulink® model simulations from C++ and visualize the results with MATLAB graphics. - Convert C++ Engine Application to MATLAB Compiler SDK Application
How to convert an engine application to a deployed application using MATLAB Compiler SDK™.
Crear tipos de datos de MATLAB
- Create Structure Arrays from C++
Create a structure array in C++ and pass it to MATLAB or get a structure array defined in MATLAB. - Create Cell Arrays from C++
Create heterogeneous arrays in C++ to use as MATLAB cell arrays. - Pass Enumerations to MATLAB From C++
Pass enumeration members of MATLAB enumeration classes to MATLAB from C++. - Pass Sparse Arrays to MATLAB From C++
Pass arrays to MATLAB as MATLAB sparse arrays.