MATLAB Function Reference | Go to function: | 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 object
- `n_in` sets the number of inputs of the model. This sets the saturation level of the inputs to -Inf, Inf.
- `n_out` sets the number of outputs of the model
- `userData` sets the 'userData' field
- `opt` sets the 'opt' field
- `date` sets the date of creation of the object
- `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 defined.
- `optimparams` sets the indices of the parameters to be optimised

See Also

get

[ Help Desk ]