%% Find unused components in a model
% Load a sample project.

sbioloadproject gprotein.sbproj

%
% Check if there is any unused species, compartments, or parameters.

unused = findUnusedComponents(m1)

%
% Add some parameters to the model that are not used.

p1 = addparameter(m1,'p1');
p2 = addparameter(m1,'p2');

%
% Look for those unused parameters.

unused = findUnusedComponents(m1)

% Copyright 2012 The MathWorks, Inc.