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:

OverviewDescribes how to call functions in external, shared libraries (.dll, .so, and .dylib files) from MATLAB® software.
Loading and Unloading the LibraryDescribes functions to use in loading the library into MATLAB® memory and later releasing that memory.
Getting Information About the LibraryShows several ways of obtaining information about the functions contained in a library.
Invoking Library FunctionsTells you how to make a call to any function in the library.
Passing ArgumentsExplains how to construct MATLAB® arguments that are compatible with the argument types found in the library functions.
Data ConversionDescribes how to convert MATLAB® data to C data types when you need to do the conversion manually.
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS