External Interfaces Reference |
Unload external library from memory
Syntax
Description
unloads the functions defined in shared library unloadlibrary('libname')
shrlib
from memory. If you need to use these functions again, you must first load them back into memory using loadlibrary
.
unloadlibrary libname
is the command format for this function.
If you used an alias when initially loading the library, then you must use that alias for the libname
argument.
Examples
Load the MATLAB sample shared library, shrlibsample
. Call one of its functions, and then unload the library:
addpath([matlabroot '\extern\examples\shrlib']) loadlibrary shrlibsample shrlibsample.h s.p1 = 476; s.p2 = -299; s.p3 = 1000; calllib('shrlibsample', 'addStructFields', s) ans = 1177 unloadlibrary shrlibsample
See Also
loadlibrary
, libisloaded
, libfunctions
, libfunctionsview
, libpointer
, libstruct
, calllib
loadlibrary | C MAT-File Functions |
© 1994-2005 The MathWorks, Inc.