Call function in C shared library
[
calls function x1,...,xN
] =
calllib(libname
,funcname
,arg1,...,argN
)funcname
in C library libname
,
passing input arguments arg1,...,argN
. The
calllib
function returns output values obtained from
funcname
in x1,...,xN
.
Use with libraries that are loaded using the loadlibrary
function.
MATLAB validates input argument types before
calling funcname
. If MATLAB displays error
messages about data types, check the MATLAB function signature.
For example, if funcname
is in library mylib
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.