Load graphics object hierarchy from file
h = hgload('filename')
[h,old_prop_values] = hgload(...,property_structure)
h = hgload('filename') loads
graphics object hierarchy from the FIG-file specified by
returns handles to the top-level objects. If
no extension, then MATLAB® adds the .
[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
property_structure must be a structure having
field names that correspond to property names and values that are
the new property values.
old_prop_values is a cell array equal in
h, containing the old values of the overridden
properties for each object. Each cell contains a structure having
field names that are property names, each of which contains the original
value of each property that has been changed. Any property specified
property_structure that is not a property of
a top-level object in the FIG-file is not included in
Nonserializable objects (such as the default toolbars and the default menus) are not saved because they are created when the figure is created. This allows revisions of the default menus and toolbars to occur without affecting existing FIG-files.
Use the File > Open on the figure window menu to access figure files with the Open dialog.