Scambio e mappatura dei dati con le applicazioni C++
Esempi che utilizzano le funzioni API Engine C++ e API dei dati di MATLAB per C++ per passare i dati tra i programmi C++ e le funzioni MATLAB®.
Utilizzare l'interfaccia fortemente tipizzata per imporre una mappatura rigorosa dei tipi di dati tra MATLAB e C++. Chiamare la funzione matlab.engine.typedinterface.generateCPP
per generare file di intestazione C++ per le funzioni e le classi di MATLAB. Quindi, quando si costruisce un'applicazione C++ con questi file di intestazione, è possibile utilizzare le funzioni e le classi di MATLAB come funzioni e classi C++, senza scrivere codice C++.
Funzioni
Argomenti
Creazione dei tipi di dati di MATLAB
- Create Structure Arrays from C++
Create structure arrays in C++ and pass to MATLAB or get structure arrays 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 members of a MATLAB enumeration class to MATLAB from C++. - Pass Sparse Arrays to MATLAB from C++
Pass arrays to MATLAB as MATLAB sparse arrays. - Use MATLAB Handle Classes in C++
Integrate MATLAB handle classes with C++ applications.
Interfaccia fortemente tipizzata
- What Is Strongly Typed Interface for C++?
The C++ MATLAB Data API interface supports strongly typed MATLAB code. - Write MATLAB Code for Strongly Typed C++ Interface
Specify data type requirements in MATLAB code. - Create C++ Header File from Strongly Typed MATLAB Function
Integrate a MATLAB Data API C++ header file from a strongly typed MATLAB function with C++ application code that calls MATLAB. - Data Type Mappings Between C++ and Strongly Typed MATLAB Code
Refer to data type mappings between C++ and MATLAB when using strongly typed MATLAB code. - Limitations of Strongly Typed Interface for C++
Strongly typed interface for C++ features not supported in MATLAB.
Risoluzione dei problemi
MATLAB Engine API for C++ Exception Classes
The MATLAB engine API for C++ defines specific exception classes for MATLAB.