Download SimBiology Getting Started Guide
Transcript
3
Getting Started Using the Command Line
Simulate the Model
Simulate model to see its dynamic behavior.
1
First turn on the optional unit conversion feature. This feature automatically
converts the units of physical quantities into one consistent system. This conversion
is in preparation for correct simulation, but species amounts are returned in the unit
that you specified (molecule in this example).
configset = getconfigset(Mobj);
configset.CompileOptions.UnitConversion = true;
2
Run the simulation.
[t, simdata, names] = sbiosimulate(Mobj);
3
Plot the results.
plot(t,simdata)
legend(names,'Location','NorthEastOutside')
title('Gene Regulation');
xlabel('Time');
ylabel('Species Amount');
3-14