%% Extract Data from Specific Model in Sparse Second-Order Model Array
% For this example, extract sparse matrices for a specific sparse second-order state-space model contained in the 3x1 array of sparse second-order models sys.
% Load the data and extract the sparse matrices of the second model in the array.

load('sparseSOModelArray.mat','sys');
size(sys)
[M,C,K,B,F,G,D] = mechssdata(sys,1,2);

% Copyright 2020 The MathWorks, Inc.