You put an ' sign to your B matrix, therefore with this sign, it contains 2 rows and it gives error. But changing it will not be enough since your D matrix is entered wrong. You should also change it. Lastly, since you have 2 inputs, you also should use ss2tf differently. The resulting code:
A = [0 2 5 -4;0 0 0 0;0 0 0 1;-6 0 -1 -2];
B = [1 2;0 0;0 0;0 5];
C = [1 0 0 0;0 1 0 0;0 0 1 0; 0 0 0 1];
D = zeros(4,2);
[nom1, denom1] = ss2tf(A,B,C,D,1);
As a result, you have 2 inputs, 4 outputs. You will obtain 8 transfer functions, 4 for each input.
Best Answer