Put the MATLAB® interface file on the MATLAB path by using the
MATLAB looks for the library interface file on the MATLAB path. The interface file for library
ext is the platform-specific file extension for a shared library
The C++ shared library file and its dependencies, if any, must be on your system path or run-time search path (rpath). For more information, see Set Run-Time Library Path for C++ Interface.
doc functions provide help for members of
the library. For example, to display help for function
To call a function in a C++ library, use the MATLAB
clib package. MATLAB automatically loads the library when you type:
memberName = "fully-qualified-class-member"; clib.memberName
After MATLAB loads the library, you can use tab completion to view the members of the
For example, to call function
funcname in library
libname, type the following statement.
defines the input arguments
arg1, arg2, ... and the output argument
retVal = clib.libname.funcname(arg1, arg2, ...)