%% Verify a SimBiology Model while Using a User-Defined Configset Object
% Load a sample SimBiology model.

sbioloadproject radiodecay.sbproj

%
% Add a new configuration set using a different stop time of 15 seconds.

csObj = addconfigset(m1,'newStopTimeConfigSet');
csObj.StopTime = 15;

%
% Verify the model while using the configset object.

verify(m1,csObj);

%
% After verification, check the latest errors and warnings if there is any.

sbiolasterror

%
%

sbiolastwarning

%
%
% Simulate the model.

sim = sbiosimulate(m1,csObj);
sbioplot(sim);

% Copyright 2012 The MathWorks, Inc.