| MATLAB® |  |
MATLAB® Interface to Generic DLLs
A shared library is a collection of functions that are available
for use by one or more applications running on a system. MATLAB® software
supports dynamic linking of external libraries on all supported platforms.
You precompile the library into a dynamic link library file
(.dll) on Microsoft® Windows® systems, a shared object
file (.so) on The Open Group's UNIX® and Linus Torvalds' Linux® systems, or a dynamic shared
library (.dylib) on Apple® Macintosh® systems.
At run-time, the library is loaded into memory and made accessible
to all applications. The MATLAB Interface to Generic DLLs enables
you to interact with functions in dynamic link libraries directly
from MATLAB.
This chapter covers the following topics:
| Overview | Describes how to call functions in external, shared
libraries (.dll, .so, and .dylib files) from MATLAB® software. |
| Loading and Unloading the Library | Describes functions to use in loading the library
into MATLAB® memory and later releasing that memory. |
| Getting Information About the Library | Shows several ways of obtaining information about
the functions contained in a library. |
| Invoking Library Functions | Tells you how to make a call to any function in the
library. |
| Passing Arguments | Explains how to construct MATLAB® arguments that
are compatible with the argument types found in the library functions. |
| Data Conversion | Describes how to convert MATLAB® data to C data
types when you need to do the conversion manually. |
 | Compiling and Linking MAT-File Programs | | Overview |  |