%% Prepare a Model for Accelerated Simulation
% Load a SimBiology project, named lotka, that contains a model m1.

sbioloadproject('lotka','m1')

%
% Prepare the model for accelerated simulation.

sbioaccelerate(m1);

%
% Simulate the model using different initial amounts of species x.

x = sbioselect(m1,'type','species','name','x');
for i=1:5
	x.initialAmount = i;
	sd(i) = sbiosimulate(m1);
end

%
% Plot the results.

sbioplot(sd);

% Copyright 2012 The MathWorks, Inc.