%% Extract Continuous-Time Sparse Second-Order State-Space Model Data
% For this example, consider sparseSOModels.mat which contains a continuous-time mechss model sys1.
% Load the model sys1 to the workspace and use mechssdata to extract the sparse matrices.

load('sparseSOModels.mat','sys1');
size(sys1)
[M,C,K,B,F,G,D] = mechssdata(sys1);

% The matrices are returned as arrays of sparse doubles.
% Copyright 2020 The MathWorks, Inc.