Help CenterHelp Center
Determine if shared C library is loaded
tf = libisloaded (libname)
example
tf = libisloaded (libname)returns logical1(true) if the shared C librarylibnameis loaded. Otherwise, it returns logical0(false).
libname
1
true
0
false
collapse all
Add theshrlibexamples folder to the path.
shrlib
addpath(fullfile(matlabroot,'extern','examples','shrlib'))
Load the library, if it is not already loaded.
if~libisloaded('shrlibsample') loadlibrary('shrlibsample')end
When finished, unload the library to free memory.
unloadlibraryshrlibsample
Name of shared library, specified as a character vector. Do not include the path or file extension inlibname.
If you callloadlibraryusing thealiasoption, then you must use the alias name for thelibnameargument.
loadlibrary
alias
Data Types:char
char
loadlibrary|unloadlibrary
unloadlibrary
Tiene una versión modificada de este ejemplo. ¿Desea abrir este ejemplo con sus modificaciones?
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office