Skip to Main Content Skip to Search
Product Documentation

set (hgsetget) - Assign property values to handle objects derived from hgsetget class

Syntax

set(H,'PropertyName',value,...)
set(H,pn,pv)
set(H,S)
S = set(h)

Description

set(H,'PropertyName',value,...) sets the named property to the specified value for the objects in the handle array H.

set(H,pn,pv) sets the named properties specified in the cell array of strings pn to the corresponding values in the cell array pv for all objects specified in H. The cell array pn must be 1-by-n (where n is the number of property names), but the cell array pv can be m-by-n where m is equal to length(H). set updates each object with the associated set of values for the list of property names contained in.

set(H,S) sets the properties identified by each field name of struct S with the values contained in S. S is a struct whose field names are object property names.

S = set(h) returns the user-settable properties of scalar h. S is a struct whose field names are the object's property names and whose values are empty cell arrays.

Override the hgsetget class setdisp method to change how MATLAB displays this information.

See Also

get (hgsetget) | handle | hgsetget | set

How To

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS