Specifications

Table Of Contents
LTI Properties
2-31
To display all of the properties of an LTI model sys (and their values), use the
syntax
get(sys). In this example,
get(h)
produces
num = {[0 0 100]}
den = {[1 5 100]}
Variable = 's'
Ts = 0
InputDelay = 0
OutputDelay = 0
ioDelay = 0
InputName = {'voltage'}
OutputName = {'current'}
InputGroup = {0x2 cell}
OutputGroup = {0x2 cell}
Notes = {'A simple circuit'}
UserData = []
Notice thatdefault (output) values have been assigned to any LTI properties in
this list that you have not specified.
Finally, you can also access property values using direct structure-like
referencing. This topic is explained in the next section.
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” on page 2-3). The field names for LTI objects are the property names,
so you can retrieve or modify property values with the structure-like syntax.
PropertyValue = sys.PropertyName% gets property value
sys.PropertyName = PropertyValue% sets property value
These commands are respectively equivalent to
PropertyValue = get(sys,'PropertyName')
set(sys,'PropertyName',PropertyValue)
For example, type