您的位置:首页 > 编程语言 > MATLAB

matlab hgsave and hgload 存取句柄图形

2012-01-18 11:30 295 查看
hgsave

Save Handle Graphics object hierarchy to file

Syntax

hgsave('filename')

hgsave(h,'filename')

hgsave(...,'all')

hgsave(...,'-v6')

hgsave(...,'-v7.3')

Description

hgsave('filename') saves the current figure to a file named filename.

hgsave(h,'filename') saves the objects identified by the array of handles h to a file named filename. If you do not specify an extension for filename, then the extension .fig is appended. If h is a vector, none of the handles in h may be ancestors or descendents
of any other handles in h.

hgsave(...,'all') overrides the default behavior, which does not save nonserializable objects. Nonserializable objects include the default toolbars and default menus. This allows revisions of the default menus and toolbars to occur without affecting existing
FIG-files and also reduces the size of FIG-files. Passing the string all to hgsave ensures that nonserializable objects are also saved. This option is obsolete and will be removed in a future release.

hgload

Load Handle Graphics object hierarchy from file

Syntax

h = hgload('filename')

[h,old_prop_values] = hgload(...,property_structure)

hgload(...,'all')

Description

h = hgload('filename') loads Handle Graphics objects and its children (if any) from the FIG-file specified by filename and returns handles to the top-level objects. If filename contains no extension, then the MATLAB software adds the .fig extension.

[h,old_prop_values] = hgload(...,property_structure) overrides the properties on the top-level objects stored in the FIG-file with the values in property_structure, and returns their previous values in old_prop_values.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: