LogDecimation - Specify recorded simulation output frequency
Description
The LogDecimation property defines how often
the simulation data is recorded as output. It is a property of the SolverOptions object. SolverOptions is
a property of the configset object. LogDecimation is
available for ssa, expltau,
and inmpltau solvers.
Use LogDecimation to specify how frequently
you want to record the output of the simulation. For example, if the LogDecimation
is set to 1, for the command (t,x) = sbiosimulate(modelObj),
at each simulation step the time will be logged in t and
the quantity of each logged species will be logged as a row in x.
If LogDecimation is 10, then every 10th simulation
step will be logged in t and x.
Characteristics
| Applies to | Object: SolverOptions |
| Data type | int |
| Data values | >0. Default is 1. |
| Access | Read/write |
Examples
This example shows how to change LogDecimation settings.
Retrieve the configset object from
the modelObj, and change the SolverType to expltau.
modelObj = sbiomodel('cell');
configsetObj = getconfigset(modelObj);
set(configsetObj, 'SolverType', 'expltau')Change the LogDecimation to 10.
set(configsetObj.SolverOptions, 'LogDecimation', 10);
get(configsetObj.SolverOptions, 'LogDecimation')
ans =
10
See Also
ErrorTolerance, RandomState
 | KineticLawName | | MaxIterations |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit