You can use cell arrays to set properties to different values on each object. Set(findobj(control_fig_handle,'Type','uicontrol'),active) When this figure becomes the current figure, MATLAB changes colors and enables the controls. For example, these statements define a structure called active, which contains a set of property definitions used for the uicontrol objects in a particular figure. You can define a group of properties in a structure to better organize your code. Set the Color property of the current axes to blue. You can use any combination of property name/property value pairs, structure arrays, and cell arrays in one call to set. If you do not specify an output argument, MATLAB displays the information on the screen. For other properties, set returns an empty cell array. If the possible values are strings, set returns each in a cell of the cell array, pv. Returns the possible values for the named property. The argument Default ObjectTypePropertyName is the word Default concatenated with the object type (e.g., axes) and the property name (e.g., CameraPosition). Returns the possible values of the named property for the specified object type, if the values are strings. h must be scalar.Ī = set(h,'Default ObjectTypePropertyName') set also returns the possible values if they are strings. Returns the names of properties having default values set on the object identified by h. The argument Factory ObjectTypePropertyName is the word Factory concatenated with the object type (e.g., axes) and the property name (e.g., CameraPosition). If you do not specify an output argument, MATLAB displays the information on the screen.Ī = set(0,'Factory ObjectTypePropertyName') a is a structure array whose field names are the object's property names and whose field values are the possible values of the corresponding properties. Returns the properties whose defaults are user settable for all objects and lists possible values for each property. Returns the user-settable properties and possible values for the object identified by h. This allows you to set a given group of properties to different values on each object. Sets n property values on each of m graphics objects, where m = length(H) and n is equal to the number of property names contained in the cell array pn. Sets the named properties specified in the cell array pn to the corresponding value in the cell array pv for all objects identified in H. a is a structure array whose field names are the object property names and whose field values are the values of the corresponding properties. Sets the named properties to the specified values on the object(s) identified by H. H can be a vector of handles, in which case set sets the properties' values for all the objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |