%% Accelerate Simulation Using a User-Defined Configset Object
% Load a sample SimBiology project.

sbioloadproject radiodecay.sbproj

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

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

%
% Prepare the model for accelerated simulation using the new configset object.

sbioaccelerate(m1,csObj);

%
% Simulate the model using the same configset object.

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

% Copyright 2012 The MathWorks, Inc.