matlab com.save函数语法

发表matlab com.save函数相关文章
一句话说明: Serialize control object to file

save (COM)

Serialize control object to file

save(h, 'filename')

Description'filename') saves the COM control object, h, to the file specified in the string, filename.

save(h, 'filename') is an alternate syntax for the same operation.

    Note   The COM save function is only supported for controls at this time.


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);'mwsample')

Now, alter the figure by changing its label and the radius of the circle:

h.Label = 'Circle';
h.Radius = 50;

Using the load function, you can restore the control to its original state:


MATLAB® displays the original values:

ans = 
     Label: 'Label'
    Radius: 20

More About


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

See Also

| | | |


与matlab com.save用法相关的文章

友情链接It题库(| 版权归yishouce.com所有| 友链等可联系|粤ICP备16001685号-1