User`s guide
Calling Conventions
varargin As Variant)
(See “Programming w ith COM Components C reated by MATLAB Builder
for .NET” in the MATLAB B uilder for .NET documentation for mappings
to other l angu ag es, such as C++.) Visual Basic prov ides native support for
COM
VARIANTswiththeVariant type,aswellasimplicitconversionsforall
Visual Basic basic types to and from
Variants. In general, arrays/scalars of
any Visual Basic basic type, as well as arrays/scalars of
Variant types, can be
passed as arguments.
Excel B uilder components also provide d irect support for the Excel
Range
object, used by VBA to represent a range of cells in an Excel worksheet. See
the VBA documentation included with Microsoft Excel for more information
on VBA data types and Excel
Range manipulation.
MATLAB Compiler Output
Excel Builder generates a default Visual Basic functio n wrapper for each class
method with the following format:
Function foo(Optional X1 As Variant, _
Optional X2 As Variant, _
.
.
.
Optional varargin1 As Variant, _
Optional varargin2 As Variant, _
.
.
.
Optional vararginN As Variant) _
As Variant
Dim Y1, Y2, ..., varargout As Variant
Dim varargin As Variant
.
.
.
(other declarations)
.
.
A-13