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.
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.
相关文章推荐
- matlab学习笔记 图形句柄属性总结
- Matlab中的图形句柄(转载)
- 【转】matlab图形句柄详解(一)
- 【转】MATLAB图形句柄(二)
- Matlab中的图形句柄(转载)
- Matlab中的图形句柄(转载)
- MATLAB学习笔记(十)——MATLAB图形句柄
- Matlab画图 句柄修改图形
- 11.10 Matlab中的图形句柄
- MATLAB中零散语法知识总结之rand()、tic toc、图形句柄
- matlab图形句柄属性总结
- MATLAB Plotyy作图及句柄设置图形格式
- matlab图形句柄属性总结
- Matlab Tricks(十四) —— 句柄(handle)(图形对象属性的读取与修改)
- matlab图形句柄属性总结
- MATLAB图形句柄
- MATLAB句柄图形对象的创建函数与函数描述
- MATLAB图形句柄
- 【Matlab】 matlab图形句柄
- matlab图形句柄属性总结