%% Discrete-Time MIMO Transfer Function Model
% Create a transfer function for the discrete-time, multi-input, multi-output model:
% sys\left( z \right) = \left[ {\begin{array}{*{20}{c}}
% {\frac{1}{{z + 0.3}}}&{\frac{z}{{z + 0.3}}}\\
% {\frac{{ - z + 2}}{{z + 0.3}}}&{\frac{3}{{z + 0.3}}}
% \end{array}} \right]
% with sample time ts = 0.2 seconds.
% Specify the numerator coefficients as a 2-by-2 matrix.

numerators = {1 [1 0];[-1 2] 3};

%
% Specify the coefficients of the common denominator as a row vector.

denominator = [1 0.3];

%
% Create the discrete-time MIMO transfer function model.

ts = 0.2;
sys = tf(numerators,denominator,ts)

% For more information on creating MIMO transfer functions, see docid:control_ug#bsst4dv-17.
% Copyright 2012 The MathWorks, Inc.