www.gusucode.com > simbio 案例源码程序 matlab代码 > simbio/PlotSimulationDataExample.m

    %% Plot Stochastic Simulation Data
% This example shows how to plot stochastic simulation data from a
% radioactive decay model.

% Copyright 2015 The MathWorks, Inc.


%%
% Load the sample project.
sbioloadproject('radiodecay');
%%
% Set the solver to be a stochastic solver.
cs = getconfigset(m1);
cs.SolverType = 'ssa';
%%
% Run an ensemble simulation with the number of runs set to 12.
sd = sbioensemblerun(m1,12);
%%
% Plot the data.
sbiotrellis(sd,'','Time',{'x','z'});