Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

save (COM)

Serialize control object to file

Syntax

save(h,'filename')

Description

save(h,'filename') saves COM control object h to file specified by filename.

    Note   The COM save function is only supported for controls.

Examples

Create an mwsamp control and save its original state to the file mwsample.

f = figure('position',[100 200 200 200]);
h = actxcontrol('mwsamp.mwsampctrl.2',[0 0 200 200],f);
save(h,'mwsample')
Alter the figure by changing its label and the radius of the circle.
h.Label = 'Circle';
h.Radius = 50;
Redraw(h)
Restore the control to its original state using the load function.
load(h,'mwsample')
get(h)
ans = 
     Label: 'Label'
    Radius: 20

More About

collapse all

Tips

COM functions are available on Microsoft® Windows® systems only.

Introduced before R2006a

Was this topic helpful?