[c485f9]: devel / test_inv.m Maximize Restore History

Download this file

test_inv.m    41 lines (26 with data), 588 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
clear all, close all, clc;
P = Boeing707
Pi = inv (P)
p1 = pole (P)
z1 = zero (P)
pi1 = pole (Pi)
zi1 = zero (Pi)
figure (1)
sigma (P, Pi)
% until here, everything looks fine. p1 == zi1, z1 == pi1
G = tf (P)
Gi = inv (G)
GPi = tf (Pi)
p2 = pole (G)
z2 = zero (G)
% FIXME: wrong/additional poles/zeros after second conversion to state-space
% (needed for computation of MIMO TF zeros/poles)
pi2 = pole (Gi)
zi2 = zero (Gi)
ppi2 = pole (GPi)
zpi2 = zero (GPi)
figure (2)
sigma (G, Gi)
% FIXME: too many states (causes additional poles/zeros)
H = ss (Gi)
Hp = ss (GPi)