%% MIMO Static Gain Sparse Second-Order Model
% Create a static gain MIMO sparse second-order state-space model.
% Consider the following two-input, three-output static gain matrix:
%  D=
%   \left[ {\begin{array}{ccc}
%    1 & 5 \\
%    2 & 3\\
%    5 & 9 \\
%   \end{array} } \right]
% Specify the gain matrix and create the static gain sparse second-order state-space model.

D = [1,5;2,3;5,9];
sys = mechss(D);
size(sys)

% Copyright 2020 The MathWorks, Inc.