| Control System Toolbox | Search  Help Desk |
| inv | Examples |
Syntax
isys = inv(sys)
Description
inv
inverts the input/output relation
.
. inv handles both continuous- and discrete-time systems.
Example
Consider
H = [1 tf(1,[1 1]);0 1] Hi = inv(H)to invert it. MATLAB returns
Transfer function from input 1 to output...
#1: 1
#2: 0
Transfer function from input 2 to output...
-1
#1: -----
s + 1
#2: 1
You can verify that
H * Hiis the identity transfer function (static gain
I).
Limitations
Do not useinv to model feedback connections such as
as
inv(1+g*h) * gthis typically leads to nonminimal closed-loop models. For example,
g = zpk([],1,1) h = tf([2 1],[1 0]) cloop = inv(1+g*h) * gyields a third-order closed-loop model with an unstable pole-zero cancellation at
s = 1.
cloop
Zero/pole/gain:
s (s-1)
-------------------
(s-1) (s^2 + s + 1)
Use feedback or star to avoid such pitfalls.
cloop = feedback(g,h)
Zero/pole/gain:
s
-------------
(s^2 + s + 1)