Creating and Manipulating Models    

Direct Property Referencing

An alternative way to query/modify property values is by structure-like referencing. Recall that LTI objects are basic MATLAB structures except for the additional flag that marks them as TF, ZPK, SS, or FRD objects (see LTI Objects). The field names for LTI objects are the property names, so you can retrieve or modify property values with the structure-like syntax.

These commands are respectively equivalent to

For example, type

and you get the value of the property "a" for the state-space model sys.

Similarly,

resets the state transition matrix for sys to -1.

Unlike standard MATLAB structures, you do not need to type the entire field name or use upper-case characters. You only need to type the minimum number of characters sufficient to identify the property name uniquely. Thus either of the commands

produces

Any valid syntax for structures extends to LTI objects. For example, given the TF model

you can reset the numerator to by typing

or equivalently, with


  Accessing Property Values Using get Additional Insight into LTI Properties