MATLAB Function Reference | Search  Help Desk |
set | See Also |
Set object properties
Syntax
set(m,'AttrName1',AttrValue1,'AttrName2',AttrValue2,...)
m_out = set(m,'AttrName1',AttrValue1,'AttrName2',AttrValue2,...)
Description
set(m,'AttrName1',AttrValue1,'AttrName2',AttrValue2,...)
sets the value of the attribute AttrName1
, AttrName2
, ...
associated to the object m
.
m_out = set(m,'AttrName1',AttrValue1,'AttrName2',AttrValue2,...)
sets the value of the attribute AttrName1
, AttrName2
, ...
associated to the object m
and return the modified model inside m_out. The original
model is not modified.
The following AttrName
are recognised:
name
sets the name of the system
n_in
sets the number of inputs of the system
n_out
sets the number of outputs of the system
data
sets the data set linked to the system
T
sets the sampling period of the discrete system, 0 if continuous
mapping
sets the array of mappings
links
sets the links array which defines which output is computed by which mapping
limits
sets the limits of the domain of definition
of the mapping. The value must be a 2*n_in
matrix where
the upper and lever saturation level are
userData
sets the 'userData' field
opt
sets the 'opt' field
date
sets the date of creation of the object
mapfield
let the user access directly property of the mappings. When used, value
must contain a 3 elements cell array {n
'property' mapvalue
}. n
is the index of the
mapping, 'property' is the name of the property which has to be changet and mapvalue
is the new value. An even more convenient
way to change mappings' fields is a achieved through the syntax s{n}.property = mapvalue. In both syntax,
if n
is negative, the abs(n)
mapping describing the state is accessed.
params
sets the parameters to be optimised
n_state
sets the number of states
state
sets the state vector of the system
statemapping
sets the mappings used to describe the state
statelinks
sets the links array which defines which state is computed using which statemapping
statelimits
sets the bounds of the states
get