Contenido principal

La traducción de esta página aún no se ha actualizado a la versión más reciente. Haga clic aquí para ver la última versión en inglés.

Utilizar interfaz de MATLAB predefinida en biblioteca de C++

Para llamar a una función en una biblioteca de C++, utilice el espacio de nombres clib de MATLAB®

Si tiene una interfaz de MATLAB publicada en una biblioteca compartida de C++, puede utilizar estas clases y funciones directamente en MATLAB, gracias al intercambio de datos que se produce entre MATLAB y C++.

Funciones

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 (Desde R2023a)
CLibraryConfigurationC++ library interface environment information (Desde 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

Temas

Configurar la interfaz de biblioteca de C++

Utilizar la biblioteca de C++ en MATLAB

Solución de problemas

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.

Ejemplos destacados