calllib
Call function in C shared library
Description
[
calls functionx1,...,xN
] = calllib(libname
,funcname
,arg1,...,argN
)funcname
in C librarylibname
, passing input argumentsarg1,...,argN
. Thecalllib
function returns output values obtained fromfuncname
inx1,...,xN
.
Examples
Input Arguments
Output Arguments
Limitations
Use with libraries that are loaded using the
loadlibrary
function.
Tips
MATLAB validates input argument types before calling
funcname
. If MATLAB displays error messages about data types, check the MATLAB function signature. For example, iffuncname
is in librarymylib
type:libfunctions('mylib','-full')
To find
funcname
, scroll through the output. For more information, refer to your library documentation.When you call
funcname
, that function might display errors. For information about error messages, refer to your library documentation.