%% Plot Data from an Ensemble Run
% This example shows how to plot data from an ensemble run.
% Load the radiodecay model.

sbioloadproject('radiodecay.sbproj','m1');

%
% Configure the model to run with the stochastic solver. By default, there will be no interpolation.

cs = getconfigset(m1, 'active');
cs.SolverType = 'ssa';
cs.SolverOptions.LogDecimation = 100;

%
% Run an ensemble simulation and view the results.

simDataObj = sbioensemblerun(m1, 10, 'linear');
sbioplot(simDataObj);

% Copyright 2015 The MathWorks, Inc.