La traducción de esta página está obsoleta. Haga clic aquí para ver la última versión en inglés.
Utilizar interfaz de MATLAB predefinida en biblioteca de C++
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
clibArray | Create MATLAB clib array for C++ library functions |
clibConvertArray | Convert numeric MATLAB array to array of C++ objects |
clibIsNull | Determine if C++ object is null |
clibIsReadOnly | Determine if C++ object is read-only |
clibRelease | Release C++ object from MATLAB |
underlyingValue | Underlying numeric value for C++ enumeration object created in MATLAB |
Temas
- Call Functions in C++ Shared Library
To call a function in the library, use the MATLAB
clib
package. - Set Run-Time Library Path for C++ Interface
If the C++ library has a shared library file, then that file and its dependencies must be on your system path or run-time search path (rpath).
- Call Functions in Windows Interface to C++ Shared Library
How to call functions in a Windows® interface to the
matrixOperations
C++ shared library example. - Call Functions in Linux Interface to C++ Shared Library
How to call functions in a Linux® interface to the
matrixOperations
C++ shared library example. - Display Help for MATLAB Interface to C++ Library
Display package information and method signatures for MATLAB interface.
- MATLAB Object For C++ Arrays
MATLAB provides an interface,
clib.array
, which wraps 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++ shared library.
- Limitations to C/C++ Support
C/C++ library features not supported in MATLAB.
- Handling Exceptions
Using C++ exceptions in MATLAB.
Solución de problemas
Troubleshooting MATLAB Interface to C++ Library Issues
MATLAB searches for the library interface file on the MATLAB path.