User`s guide

Table Of Contents
2 LTI Models
2-4
Creating an LTI Object: An Example
An LTI object of the type TF, ZPK, SS, or FRD is created whenever you i nvoke
the corresponding constructor function,
tf, zpk, ss,orfrd. For example,
P = tf([1 2],[1 1 10])
creates a TF object, P, that stores the numerator and denominator coefficients
of the transfer function
See “Creating LTI M odels” on page 2-8 for methods for creating all of the LTI
object types.
LTI Properties and Methods
The LTI object implementation relies on MATLAB object-oriented
programming capabilities. Objects are MATLAB structures with an additional
flag indicating their class (TF, ZPK, SS, or FRD for LTI objects) and have
pre-defined fields called object properties. For LTI objects, these properties
include the model data, sample time, delay times, input or output names, and
input or output groups (see “LTI Properties” on page 2-26 for details). The
functions that operate on a particular object are called the object methods.
These may include customized versions of simple operations such as addition
or multiplication. For example,
P = tf([1 2],[1 1 10])
Q = 2 + P
performs transfer function addition.
The object-specific versions of such standard operations are called overloaded
operations. For more details on objects, methods, and object-oriented
programming, see Chapter 14, “Classes and Objects” in Using MATLAB.For
details on operations on LTI objects, see Chapter 3, “Operations on LTI
Models.”
Ps()
s 2
+
s
2
s 10++
---------------------------=
Qs() 2 Ps()+
2s
2
3s 22++
s
2
s10++
-----------------------------------==