| External Interfaces/API Reference | ![]() |
Initialize a COM object from a file
Syntax
Arguments
h
Handle for a MATLAB COM control object.
filename
The full path and filename of the serialized data.
Description
Initializes the COM object associated with the interface represented by the MATLAB COM object h from a file. The file must have been created previously by serializing an instance of the same control.
The COM load function is only supported for controls at this time.
Examples
Create an mwsamp control and save its original state to the file mwsample:
f = figure('pos', [100 200 200 200]); h = actxcontrol('mwsamp.mwsampctrl.2', [0 0 200 200], f); save(h, 'mwsample')
Now, alter the figure by changing its label and the radius of the circle:
Using the load function, you can restore the control to its original state:
See Also
save, actxcontrol, actxserver, release, delete
| isprop (COM) | methods | ![]() |