TZERO_PROBLEM.M

Beispiel für unterschiedliche Ergebnisse in Abhängigkeit von der Form des Aufrufs

tzero_problem.m — Objective-C source code, 628 bytes

Dateiinhalt

%
% Example 2 of Jacob van der Woude: Technical Report 96-96
%
A=zeros(6,6);
A(1,3) = 1;
A(2,1) = 2; A(2,4) = 3; A(2,5) = 4;
A(3,3) = 5; A(3,6) = 6;
A(4,2) = 7; 
A(5,4) = 8; A(5,5) = 9
%
B=zeros(6,2);
B(5,1) = 10; 
B(6,2) = 11
%
C=zeros(3,6);
C(1,2) = 12; C(1,5) = 13;
C(2,1) = 14; 
C(3,1) = 15; C(3,3) = 16
%
% Computation of the Output Decoupling Zeros by setting B matrix to zero

ODZ1 = tzero(A,[],C,[]) % returns a wrong output decoupling zero by 2.35

sys = ss(A,[],C,[]);

ODZ2 = tzero(sys) % returns the right result: no output decoupling zero

% [P,ODZ3] = polzer(sys) % check with SLICOT