The n x n
system matrix needs to be defined with transfer functions:
W = minreal( [ tf( ... ) ... tf(...) ; ... ; tf( ... ) ... tf(...) ];
e.g.:
Z_11(s) = (s^1+2s^0)/(s^2+3s-s^-1)
->
Z_11 = tf( [1 2 0] , [1 3 -1] );
Usually an inversion is necessary
H = inv(W);
This matrix can directly be included in the LTI-Sytem Block of the Control System Toolbox. The input and output vectors are embedded using mux and demux.
Internally the LTI system is using n*n of the proposed state space models, therefore it would be to complicated for big system to create them manually.