| MATLAB® | ![]() |
unloadlibrary('libname')
unloadlibrary libname
unloadlibrary('libname') unloads the shared library libname from memory. If you need to use functions in this library, you must reload the library using the loadlibrary function.
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.
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
![]() | unix | unmkpp | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |