MATLAB Compiler | ![]() ![]() |
Note To create Excel plug-ins from the MATLAB Compiler, you must have the MATLAB Excel Builder installed on your system. |
You can use mbuild
to create a COM object from MATLAB M-files that can be used as an Excel plug-in. The collection of M-files is translated into a single Excel plug-in. MATLAB Excel Builder supports one class 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.
.DEF
files
Using mbuild
options you can enable auto registration of the COM-compatible DLL.
For example, to compile plus1.m
into an Excel plug-in, use
For more information, see the MATLAB Excel Builder documentation.
![]() | Building COM Objects | Troubleshooting | ![]() |