User`s guide

Table Of Contents
Creating LTI Models
2-11
For example, for the rational transfer matrix , the two cell arrays N and D
should contain the row-vector representations of the polynomial entries of
YoucanspecifythisMIMOtransfermatrix bytyping
N = {[1 –1];[1 2]}; % cell array for N(s)
D = {[1 1];[1 4 5]}; % cell array for D(s)
H = tf(N,D)
MATLAB responds with
Transfer function from input to output...
s – 1
#1: -----
s + 1
s + 2
#2: -------------
s^2 + 4 s + 5
Notice that both N and D have the same dimensions as H. For a general MIMO
transfer matrix , the cell array entries
N{i,j} and D{i,j} should be
row-vector representations of the numerator and denominator o f , the
entry of the transfer matrix .
Pure Gains
Youcan usetf withonlyoneargumenttospecify simplegainsor gainmatrices
as TF objects. For example,
G = tf([1 0;2 1])
produces the gain matrix
Hs
()
Ns()
s 1
s 2+
= Ds()
s 1+
s
2
4s 5++
=
Hs
(
)
Hs
(
)
H
ij
s
(
)
ijth
Hs
()
G
10
21
=