The MATLAB® Compiler™ components have flags that control how array data is formatted in both directions. Generally, you should develop client code that matches the intended inputs and outputs of the MATLAB functions with the corresponding methods on the compiled COM objects, in accordance with the rules listed in MATLAB to COM VARIANT Conversion Rules and COM VARIANT to MATLAB Conversion Rules. In some cases this is not possible, for example, when existing MATLAB code is used in conjunction with a third-party product like Excel®.
The following table shows the array formatting flags.
Array Formatting Flags
Defines the array formatting rule used on input arrays.
Sets the input array indirection level used with the
Defines the array formatting rule used on output arrays.
An output array is a MATLAB array, created by the compiled COM
object, sent as an output parameter from a method call to the client.
The values for this flag,
(Applies to nested cell arrays only.) Output array indirection
level used with the
(Applies to Excel ranges only.) When the target
output from a method call is a range of cells in an Excel worksheet
and the output array size and shape is not known at the time of the
call, set this flag to
Set this flag to