This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Determine if shared C library is loaded


tf = libisloaded(libname)



tf = libisloaded(libname) returns logical 1 (true) if the shared C library libname is loaded. Otherwise, it returns logical 0 (false).


collapse all

Add the shrlib examples folder to the path.


Load the library, if it is not already loaded.

if ~libisloaded('shrlibsample')

When finished, unload the library to free memory.

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

Introduced before R2006a