%% Discrete-Time Sparse First-Order Model
% For this example, consider sparseFODiscrete.mat which contains sparse matrices for a discrete-time sparse first-order state-space model.
% Extract the sparse matrices from sparseFODiscrete.mat.

load('sparseFODiscrete.mat','A','B','C','D','E','ts');

% Create the sparss model object.

sys = sparss(A,B,C,D,E,ts)

% The output sys is a discrete-time sparss model object containing with 398 states, 1 input and 1 output.
% You can use the spy command to visualize the sparsity of the sparss model object.

spy(sys)

% You can also view model properties of the sparss model object.

properties('sparss')

% Copyright 2020 The MathWorks, Inc.