com component integration -凯发k8网页登录
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
create com component for deployment outside matlab | |
options for building com components | |
display version and location information for matlab runtime installer corresponding to current platform | |
return matlab runtime version number that matches matlab version |
com utility classes
examples and how to
learn how to create a generic com component.
register the
mwcomutil
library to use com components.call class methods to access the encapsulated matlab functions.
integrate a com object into a visual c ® program.
pass multiple arguments as a
varargin
array by creating avariant
array and assigning each array element to the respective input argument.refer to array formatting and data conversion flags.
class properties allow an object to retain an internal state between method calls.
handle interaction in a console-based program that creates matlab figures.
use matlab function
componentinfo
to query the system registry for installed com components.create a com component from a simple matlab file.
use
mcc
to build com components.deploy com components on target machines.
concepts
integrate com components into com compliant programs.
learn how microsoft visual basic® handles exceptions.
register com components created by matlab compiler sdk on the target machine.
convert data between matlab and com variants.
learn the method calling conventions for com components.