%% Discrete-Time MIMO State-Space Model
% Create a state-space model using the following discrete-time, multi-input, multi-output state matrices with sample time ts = 0.2 seconds:
% A =  \left[ {\begin{array}{cc}
%    -7 & 0 \\
%    0 & -10 \\
%   \end{array} } \right]\;\;\;\;
% B =  \left[ {\begin{array}{cc}
%   5 & 0\\
%   0 & 2\\
%   \end{array} } \right]\;\;\;\;
% C =  \left[ {\begin{array}{cc}
%    1 & -4 \\
%   -4 & 0.5\\
%   \end{array} } \right]\;\;\;\;
% D = \left[ {\begin{array}{cc}
%    0 & -2 \\
%   2 & 0\\
%   \end{array} } \right]
% Specify the state-space matrices and create the discrete-time  MIMO state-space model.

A = [-7,0;0,-10];
B = [5,0;0,2];
C = [1,-4;-4,0.5];
D = [0,-2;2,0];
ts = 0.2;
sys = ss(A,B,C,D,ts)

% Copyright 2019 The MathWorks, Inc.