| External Interfaces Reference | ![]() |
Return information on functions in external library
Syntax
Description
m = libfunctions('libname')
returns the names of all functions defined in the external shared library, libname, that has been loaded into MATLAB with the loadlibrary function. The return value, m, is a cell array of strings.
If you used an alias when initially loading the library, then you must use that alias for the libname argument.
m = libfunctions('libname', ' returns a full description of the functions in the library, including function signatures. This includes duplicate function names with different signatures. The return value, -full')
m, is a cell array of strings.
libfunctions libname is the command format for this function.-full
Examples
List the functions in the MATLAB libmx library:
hfile = [matlabroot '\extern\include\matrix.h']; loadlibrary('libmx', hfile) libfunctions libmx Methods for class lib.libmx: mxAddField mxGetFieldNumber mxIsLogicalScalarTrue mxArrayToString mxGetImagData mxIsNaN mxCalcSingleSubscript mxGetInf mxIsNumeric mxCalloc mxGetIr mxIsObject mxClearScalarDoubleFlag mxGetJc mxIsOpaque mxCreateCellArray mxGetLogicals mxIsScalarDoubleFlagSet . . . . . .
To list the functions along with their signatures, use the -full switch with libfunctions:
libfunctions libmx -full Methods for class lib.libmx: [mxClassID, MATLAB array] mxGetClassID(MATLAB array) [lib.pointer, MATLAB array] mxGetData(MATLAB array) [MATLAB array, voidPtr] mxSetData(MATLAB array, voidPtr) [uint8, MATLAB array] mxIsNumeric(MATLAB array) [uint8, MATLAB array] mxIsCell(MATLAB array) [lib.pointer, MATLAB array] mxGetPr(MATLAB array) [MATLAB array, doublePtr] mxSetPr(MATLAB array, doublePtr) . . unloadlibrary libmx
See Also
loadlibrary, libfunctionsview, libpointer, libstruct, calllib, libisloaded, unloadlibrary
| calllib | libfunctionsview | ![]() |
© 1994-2005 The MathWorks, Inc.