Write the MATLAB® code for the add-in, create the function using the Library Compiler app, and package it into an installer for distribution. You can import the executable in Excel as an add-in. The Function Wizard enables you to iteratively test, develop, and debug your MATLAB function.
|Library Compiler||Package MATLAB programs for deployment as shared libraries and components|
Workflow to incorporate your COM component into Microsoft Excel using the Function Wizard.
If you are still in the process of developing a MATLAB function that is not yet ready to be deployed, you may find this example to be an appropriate introduction to using MATLAB Compiler™ for Excel add-ins.
Execute and test your functions, create macros, and more with the Function Wizard
To deploy MATLAB functions, the compiler performs these tasks:
Using MATLAB data files in compiled applications
loadlibrary function in MATLAB allows you to load shared library into MATLAB.
Things to consider when creating an Excel Add-in with MATLAB Compiler
Functions not able to be compiled with MATLAB Compiler or MATLAB Compiler SDK™
Basics about the dependency analysis function
How the dependency function handles MEX-files, DLLs, and shared libraries
Writing MATLAB code that can be packaged and deployed.
How to pass arguments to standalone applications and run applications that use arguments
This appendix provides a table showing errors you may encounter using MATLAB Compiler, probable causes for these errors, and suggested solutions.