User`s manual

Additional ActiveX Client Information
7-11
activex object called hPlot.) In particular, this example iterates through a
collection of
Plot interfaces, invokes the Redraw method for each interface, and
then releases each interface.
hCollection = get (hControl, 'Plots');
for i=1:get (hCollection, 'Count')
hPlot = invoke (hCollection, 'Item', i);
invoke (hPlot, 'Redraw');
release (hPlot);
end;
release (hCollection);
Converting Data
Since ActiveX defines a number of different data formats and types, you will
need to know how MATLAB converts data from
activex objects into variables
in the MATLAB workspace. Data from
activex objects must be converted:
When a property value is retrieved
When a value is returned from a method invocation
This chart shows how ActiveX data types are converted into variables in the
MATLAB workspace.
ActiveX Data Type MATLAB Variable
String
File Time
Error
Decimal Date
MATLAB String
Currency
Hresult
Int/Unsigned (2, 4, 8)
Bool
Scalar Double
Real (Single/Double
Null
NaN
Precision)