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 |
libraryCompiler | Build and package functions for use in external applications |
componentinfo | Query system registry about component created with MATLAB Compiler |
mcc | Compile MATLAB functions for deployment |
deploytool | Compile and package functions for external deployment |
Create Excel Add-In from MATLAB
Workflow to create an Excel Add-In.
Create Macros from MATLAB Functions
Creating Excel add-ins from your MATLAB code
Execute Functions and Create Macros
Workflow to incorporate your COM component into Microsoft Excel using the Function Wizard.
End-to-End Deployment of MATLAB Function
The option to build and package MATLAB code from within the Function Wizard for Excel add-ins will be removed in a future release.
Execute Add-In and Graphical Function
Execute and test your functions, create macros, and more with the Function Wizard
How Does MATLAB Deploy Functions?
To deploy MATLAB functions, the compiler performs these tasks:
MATLAB Data Files in Compiled Applications
Using MATLAB data files in compiled applications
Calling Shared Libraries in Deployed Applications
The 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 Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK
Functions not able to be compiled with MATLAB Compiler or MATLAB Compiler SDK™
Basics about the dependency analysis function
MEX-Files, DLLs, or Shared Libraries
How the dependency function handles MEX-files, DLLs, and shared libraries
Writing MATLAB code that can be packaged and deployed.
Standalone Applications and Arguments
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.