Class: matlab.mixin.SetGet
Package: matlab.mixin
Assign specified property-name/property-value pairs
set(H,Name,Value,...)
set(H,pn,pv)
set(H,s)
S = set(h)
set( sets the named property to the specified value for the objects in the handle array H,Name,Value,...)H. set matches partial and case-insensitive names that are not ambiguous. Inexact name matching applies only to class properties. Dynamic properties require exact name matches.
set( sets the named properties specified in the cell array of strings H,pn,pv)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( sets the properties identified by each field name of H,s)struct
s with the values contained in s. s is a struct whose field names are object property names.
returns the user-settable properties of scalar S = set(h)h. S is a struct whose field names are the object's property names and values that are either empty cell arrays or cell arrays of possible values for properties that have a finite set of predefined possible values.
Set the value of a property named Data on an instance of a class that derives from matlab.mixin.SetGet.
set(obj,'Data',[1 2 3 4])
Override the matlab.mixin.SetGet class setdisp method to change how MATLAB® displays information returned by set.