%% Discrete-Time MIMO Zero-Pole-Gain Model
% Create a zero-pole-gain model 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 zeros and poles as cell arrays and the gains as an array.

zeros = {[] 0;2 []};
poles = {-0.3 -0.3;-0.3 -0.3};
gain = [1 1;-1 3];
ts = 0.2;

% Create the discrete-time MIMO zero-pole-gain model.

sys = zpk(zeros,poles,gain,ts)

% Copyright 2020 The MathWorks, Inc.