
196 Appendix A: The MATLAB System Control Toolbox
where
,
are the coefficients of the numerator, while
,
,
are the coefficients of the denominator. Both polynomials are specified by a vector
of coefficients
,
and
,
,
.
Therefore, the model can be represented by the transfer function of a SISO
system (Single Input Single Output) by specifying the polynomials for the
numerator and denominator as inputs to the command tf.
Example
210
>> num = [1 0]; % Numerador ->
>> den = [1 2 10]; %Denominador:->
210
>> H = tf (num,den)
Transfer function:
s
--------------
s^2 + 2 s + 10
Alternatively this model can be specified as an expression involving the 's' term by
defining
>> s = tf('s'); % Create Laplace variable
>> H = s/(s^2+2*s+10)
Transfer function:
s
--------------
s^2 + 2 s + 10
In both cases, an object H representing the system model is created in MATLAB.
>> H
Transfer function:
s
--------------
s^2 + 2 s + 10
A.3 Zeros, Poles, and Gain
A model can also be described in the form of zeros, poles and gain (ZPK), which
is a factored form to express a transfer function model, that is
where K is the gain,
are the zeros of and
are the poles of
.
In this format, a model is characterized by its gain value (K), its zeros (which
are the roots of the numerator polynomial) and its poles (which are the roots of the
denominator polynomial) and is represented by using the command zpk.