Modern Control Engineering

(Chris Devlin) #1
58 Chapter 2 / Mathematical Modeling of Control Systems

Hence

A–2–12. Consider a system with multiple inputs and multiple outputs. When the system has more than one
output, the MATLAB command

[NUM,den] = ss2tf(A,B,C,D,iu)

produces transfer functions for all outputs to each input. (The numerator coefficients are returned
to matrix NUM with as many rows as there are outputs.)
Consider the system defined by

This system involves two inputs and two outputs. Four transfer functions are involved:
and (When considering input u 1 ,we assume that input u 2
is zero and vice versa.)

Solution.MATLAB Program 2-5 produces four transfer functions.
This is the MATLAB representation of the following four transfer functions:

Y 2 (s)
U 2 (s)

=

s- 25
s^2 + 4 s+ 25

Y 1 (s)
U 2 (s)

=

s+ 5
s^2 +4s+ 25

,

Y 2 (s)
U 1 (s)

=

- 25

s^2 + 4 s+ 25

Y 1 (s)
U 1 (s)

=

s+ 4
s^2 +4s+ 25

,

Y 2 (s)U 1 (s),Y 1 (s)U 2 (s), Y 2 (s)U 2 (s).

Y 1 (s)U 1 (s),

B


y 1
y 2

R= B


1

0

0

1

RB


x 1
x 2

R + B


0

0

0

0

RB


u 1
u 2

R


B


x# 1
x# 2

R= B


0

- 25

1

- 4

RB


x 1
x 2

R+ B


1

0

1

1

RB


u 1
u 2

R


=

1

(s+1)^2 (s+2)

=

1

s^3 +4s^2 +5s+ 2

=[1 0 0]F


1

s+ 1

0

0

1

(s+1)^2
1
s+ 1

0

1

(s+1)^2 (s+2)
1
(s+1)(s+2)
1
s+ 2

VC


0

0

1

S


G(s)=[1 0 0]C


s+ 1
0
0

- 1

s+ 1
0

0

- 1

s+ 2

S



  • 1
    C


0

0

1

S


Openmirrors.com

Free download pdf