MATLAB Compiler    

Building COM Objects

You can use mbuild to create Component Object Model (COM) objects from MATLAB M-files. The collection of M-files is translated into a single COM class. MATLAB COM Builder supports multiple classes per component.

The interface to the COM class is the same set of functions that are exported from a C shared library, but the Compiler supports both C and C++ code generation in producing COM objects.

mbuild automatically:

Using mbuild options you can enable auto registration of the COM-compatible DLL.

For example, to compile plus1.m into a COM object, use

For more information, see the MATLAB COM Builder documentation.


  Building Shared Libraries Building Excel Plug-Ins