MATLAB-Daten-API für C++
Die MATLAB-Daten-API bietet eine Möglichkeit für Anwendungen, die außerhalb von MATLAB ausgeführt werden, über eine MATLAB-neutrale Schnittstelle mit MATLAB-Daten zu arbeiten. Die API nutzt moderne C++ Semantik und Designmuster und vermeidet durch Copy-on-Write-Semantik von MATLAB weitestgehend die Erstellung von Datenkopien.
Hinweis
Die MATLAB-Daten-API unterstützt moderne C++ Funktionen und ist nicht mit C Matrix-API kompatibel. Sie können Funktionen aus der MATLAB-Daten-API in einer MEX-Datei nicht mit Funktionen aus der C Matrix-API und der C MEX-API kombinieren. Ebenso wenig können Sie Funktionen der MATLAB-Daten-API mit Funktionen in der C Engine-API (erläutert unter Aufrufen von MATLAB aus C heraus) oder der C MAT-File-API (erläutert in Verfassen von C Programmen zum Lesen von MAT-File-Daten) kombinieren.
Klassen
Themen
- Create Arrays with C++ MATLAB Data API
Create MATLAB array.
- Copy C++ MATLAB Data Arrays
The
matlab::data::Array
class supports both copy and move semantics. - Access C++ Data Array Container Elements
The C++ MATLAB Data API
CellArray
andStructArray
types are containers for other MATLAB Data Arrays. - C++ Cell Arrays
To create a cell array, use the
matlab::data::ArrayFactory
createCellArray
function. - Operate on C++ Arrays Using Visitor Pattern
The visitor design pattern is a useful technique for performing various operations on arrays.
- MATLAB Data API Random Access Iterators
The MATLAB Data API provides random access iterators based on the C++ language specification.
- MATLAB Data API Exceptions
The MATLAB Data API defines specific exception classes for MATLAB.
- MATLAB Data API Types
The MATLAB Data API defines specific types for working with MATLAB.