%  Example 2.2.  Computes the MIMO transfer function.clear
%  Define the state model matrices.
A=[-1  2
   0 -3];
B=[1 0
   0 4];
C=[1  1
   1 -1];
D=zeros(2);
%  Compute the transfer function from each input.
[num1,den1]=ss2tf(A,B,C,D,1)
[num2,den2]=ss2tf(A,B,C,D,2)