Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

libfunctions

Return information on functions in shared library

Syntax

libfunctions libname
m = libfunctions(libname)
m = libfunctions(libname,'-full')

Description

libfunctions libname displays names of functions defined in library, libname. If you called loadlibrary using the alias option, then you must use the alias name for the libname argument.

m = libfunctions(libname) returns names of functions in cell array m.

example

m = libfunctions(libname,'-full') returns function signatures.

Examples

collapse all

Add path to examples folder.

addpath(fullfile(matlabroot,'extern','examples','shrlib'))

Display functions in library.

if not(libisloaded('shrlibsample'))
    loadlibrary('shrlibsample')
end
libfunctions('shrlibsample')
Functions in library shrlibsample:

addDoubleRef              addMixedTypes             addStructByRef            addStructFields           allocateStruct            deallocateStruct          exportedDoubleValue       getListOfStrings          multDoubleArray           multDoubleRef             multiplyShort             print2darray              printExportedDoubleValue  readEnum                  stringToUpper             

Clean up.

unloadlibrary shrlibsample

Input Arguments

collapse all

Name of shared library, specified as a character vector. Do not include the path or file extension in libname.

If you call loadlibrary using the alias option, then you must use the alias name for the libname argument.

Data Types: char

Output Arguments

collapse all

Functions names, returned as a cell array.

Limitations

  • Use with libraries that are loaded using the loadlibrary function.

Introduced before R2006a

Was this topic helpful?