calllib
Call function in C shared library
Description
[
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
.
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.
Version History
Introduced before R2006a