Main Content

COM Component Integration

Integrate COM components into applications

Integrating MATLAB® generated COM components into an application requires you to use a combination of APIs. MATLAB Compiler SDK™ uses APIs to initialize the MATLAB Runtime, load the compiled MATLAB functions into the MATLAB Runtime, and manage data that is passed between the COM components and the MATLAB Runtime. The compiler generates some of the APIs based on the signatures of the compiled functions. MATLAB Runtime provides other APIs that are consistent for all applications.

Use COM components for integrating MATLAB functions into Microsoft® Office products. MATLAB Compiler™ offers direct integration with Microsoft Excel®.

Functions COM component for deployment outside MATLAB for building COM components
mcrinstallerDisplay version and location information for MATLAB Runtime installer corresponding to current platform
mcrversionReturn MATLAB Runtime version number that matches MATLAB version

Examples and How To