Contenu principal

La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.

Utiliser une interface MATLAB prédéfinie vers une bibliothèque C++

Appeler une fonction d’une bibliothèque C++ en utilisant le namespace MATLAB® clib

Si vous disposez d’une interface MATLAB publiée vers une bibliothèque C++ partagée, vous pouvez utiliser ces classes et fonctions directement dans MATLAB et échanger des fonctions entre MATLAB et C++.

Fonctions

clibArrayCreate MATLAB clib array for C++ library functions
clibConvertArrayConvert MATLAB fundamental or struct array to MATLAB array of C++ objects
clibConfigurationSet run-time configuration parameters for C++ library interface (depuis R2023a)
CLibraryConfigurationC++ library interface environment information (depuis R2023a)
clibIsNullDetermine if C++ object is null
clibIsReadOnlyDetermine if C++ object is read-only
clibReleaseRelease C++ object from MATLAB
underlyingValueUnderlying numeric value for C++ enumeration object created in MATLAB

Rubriques

Configurer une interface vers une bibliothèque C++

Utiliser une bibliothèque C++ dans MATLAB

Résolution des problèmes

Troubleshooting MATLAB Interface to C++ Library Run-Time Issues

Resolve unexpected run-time errors when calling functions in a published MATLAB interface to a C++ shared library.

Troubleshooting Calls to C++ Library Functions

Resolve unexpected issues when calling functions in a C++ shared library.

Limitations to C/C++ Support

C/C++ library features not supported in MATLAB.

Handling Exceptions

Using C++ exceptions in MATLAB.

Sélection d՚exemples