Main Content

Use PrebuiltMATLABInterface to C++ Library

To call a function in a C++ library, use the MATLAB® clibpackage

If 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++.

Functions

clibArray CreateMATLABclib array for C++ library functions
clibConvertArray Convert numericMATLABarray to array of C++ objects
clibIsNull Determine if C++ object is null
clibIsReadOnly Determine if C++ object is read-only
clibRelease Release C++ object fromMATLAB
underlyingValue Underlying numeric value for C++ enumeration object created inMATLAB

Topics

Troubleshooting

Troubleshooting MATLAB Interface to C++ Library Issues

MATLAB searches for the library interface file on the MATLAB path.