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(H,'Name',Value,...)
sets the named
property to the specified value for the objects in the handle array 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(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 values that are either
empty cell arrays or cell arrays of possible values for properties
that have a finite set of predefined possible values.
Override the matlab.mixin.SetGet
class setdisp
method
to change how MATLAB® displays information returned by set
.
Access | public |
To learn about attributes of methods, see Method Attributes in the MATLAB Object-Oriented Programming documentation.