clib
packageIf you have a published MATLAB interface to a C++ shared library, then you can use these classes and functions directly in MATLAB, passing data back and forth between MATLAB and C++.
clibArray | Create MATLAB object for C++ array or std::vector |
clibConvertArray | Convert numeric array to MATLAB object for C++ array |
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 |
Call Functions in C++ Shared Library
To call a function in the library, use the MATLAB
clib
package.
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 to C++ Data Type Mapping
Correspondence of MATLAB data types to C++ types.
MATLAB provides an interface, clib.array
, which wraps C++ native
arrays and std::vector
types.
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 using the matlab.lang.makeValidName
function.
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).
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.
C/C++ library features not supported in MATLAB.
Using C++ exceptions in MATLAB.