Nutzung einer vorhandenen MATLAB-Schnittstelle zu einer C++ Bibliothek
clib
Wenn Sie über eine veröffentlichte MATLAB-Schnittstelle zu einer freigegebenen C++ Bibliothek verfügen, dann können Sie diese Klassen und Funktionen direkt in MATLAB nutzen und Daten zwischen MATLAB und C++ übertragen.
Funktionen
clibArray | Create MATLAB clib array for C++ library functions (Seit R2020a) |
clibConvertArray | Convert numeric MATLAB array to array of C++ objects (Seit R2020a) |
clibConfiguration | Change execution mode of C++ library interface (Seit R2023a) |
CLibraryConfiguration | C++ library interface environment information (Seit R2023a) |
clibIsNull | Determine if C++ object is null (Seit R2019b) |
clibIsReadOnly | Determine if C++ object is read-only (Seit R2019b) |
clibRelease | Release C++ object from MATLAB (Seit R2019a) |
underlyingValue | Underlying numeric value for C++ enumeration object created in MATLAB (Seit R2019a) |
Themen
- Call Functions in C++ Compiled Library
To call a function in the library, use the MATLAB
clib
package. - Call Functions in Windows Interface to C++ Compiled Library
How to call functions in a Windows® interface to the
matrixOperations
C++ compiled library example. - Call Functions in Linux Interface to C++ Compiled Library
How to call functions in a Linux® interface to the
matrixOperations
C++ compiled library example. - Set Run-Time Library Path for C++ Interface
If the C++ library has a compiled library file, then that file and its dependencies must be on your system path or run-time search path (rpath).
- Load C++ Library In-Process or Out-of-Process
Execute C++ functions in processes that are separate from the MATLAB process.
- Display Help for MATLAB Interface to C++ Library
Display package information and method signatures for MATLAB interface.
- MATLAB Object for C++ Arrays
MATLAB provides the
clib.array
interface to wrap C++ native arrays andstd::vector
types. - C++ Language Opaque Objects
How MATLAB handles opaque objects.
- C++ Names That Are Invalid in MATLAB
MATLAB automatically renames classes, member functions, non-member functions, and enumerations with C++ names that are invalid in MATLAB by using the
matlab.lang.makeValidName
function. - Use Function Type Arguments
How to pass function type arguments to C++ functions.
- Use Function and Member Function Templates
How to call and customize names of functions derived from C++ templates.
- Use C++ Objects and Functions in parfor Loops
How to take advantage of parallel computing resources using a MATLAB interface to a C++ compiled library.
- Limitations to C/C++ Support
C/C++ library features not supported in MATLAB.
- Handling Exceptions
Using C++ exceptions in MATLAB.
Fehlersuche
Troubleshooting MATLAB Interface to C++ Library Issues
MATLAB searches for the library interface file on the MATLAB path.