User`s guide

A Producing a COM Object from MATLAB
(function body)
.
.
.
foo = Y1
.
.
.
(error handling code)
.
.
.
End Function
By default, the generated formula function contains an argument list with all
theinputstothemethodcallandareturn value corresponding to the first
output parameter. The argument list includes each explicit input parameter.
If the optional
varargin parameter is present in the original M ATLAB
function, additional arguments
varargin1, varargin2,...,vararginn are
generated, where
n is a number chosen by the builder. The number n is chosen
so that the total number of inputs is less than or equal to 32. This function
generally includes a declaration for each output parameter as type
Variant.If
the original M ATLAB function contains a
varargin,avariableisdeclaredof
type
Variant to pass collectively the varargin1,...,vararginn parameters
in the form of a
Variant array. The main function body contains code for
Packing
varargin parameters if available
Creating the necessary class instance
Calling the target method
Error handling
A-14