dlopen
Loads an dynamic library.
📝Syntax
lib = dlopen(libraryname)
📥Input Arguments
Parameter Description
libraryname a string: dynamic library name.
📤Output Arguments
Parameter Description
lib a dllib handle.
📄Description

dlopen loads an dynamic library.

dlopen returns a dllib handle with Path property.

get, ismethod, isprop, disp, delete, isvalid, used, eq, ne, isequal, horzcat, vertcat are overloaded for dllib type.

library is searched first in NELSON_LIBRARY_PATH and after in PATH on windows or LD_LIBRARY_PATH or DYLD_LIBRARY_PATH on linux or Macos.

NELSON_LIBRARY_PATH can modified with setenv.

💡Examples
path_1 = modulepath('dynamic_link', 'builtin');
lib1 = dlopen(path_1)
isvalid(lib1)
dlclose(lib1)
isvalid(lib1)
clear lib1
🔗See Also
dlclosedllibisloaded
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub