| Contents | Index |
| On this page… |
|---|
MATLAB Builder EX lets you package MATLAB programs as Microsoft Excel add-ins and integrate them into Excel spreadsheets. These add-ins enable you to perform analyses and simulations within Excel that include MATLAB math, graphics, and GUIs developed in MATLAB. The add-ins can be distributed royalty-free to computers that do not have MATLAB installed.
Using MATLAB Compiler, MATLAB Builder EX encrypts your MATLAB programs and then generates Microsoft Visual Basic for Applications (VBA) wrappers around them so that they behave just like other Excel add-ins.
MATLAB Builder EX creates VBA macros that let you pass Excel worksheet values to a deployed MATLAB program without writing or editing VBA code. It lets you prototype in Excel, debug your MATLAB source code, build the add-in, and load and test it in the worksheet.
The builder converts MATLAB functions to methods of a class that you define. From this class, the builder creates Excel add-ins (an .xla file, in addition to a .bas file).
MATLAB Builder EX components are Microsoft® COM objects that are accessible from Microsoft Excel through Visual Basic® for Applications (VBA). MATLAB Builder EX integrates the COM wrapper with the MATLAB Compiler-generated VBA code, saving you considerable development resources and time.
COM is an acronym for Component Object Model, which is a Microsoft binary standard for object interoperability. COM components use a common integration architecture that provides a consistent model across multiple applications. All Microsoft Office applications support COM add-ins.
Each COM object exposes a class to the Visual Basic programming environment. The class contains a set of functions called methods. These methods correspond to the original MATLAB functions included in the project. The COM components created by MATLAB Builder EX contain a single class. This class provides the interface to the MATLAB functions that you add to the class at build time. The COM component provides a set of methods that wrap the MATLAB code and a DLL file.
When you package and distribute an application that uses your component, include supporting files generated by MATLAB Builder EX. Include the MATLAB Compiler Runtime (MCR), which gives you access to an entire library of MATLAB functions within one file.
For information about how MATLAB® Compiler works, see How Does MATLAB Compiler Software Build My Application?.
![]() | Product Description | MATLAB Builder EX Prerequisites | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |