Products & Services Solutions Academia Support User Community Company

Learn more about SimBiology   

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 toObject: SolverOptions
Data typeint
Data values>0. Default is 1.
AccessRead/write

Examples

This example shows how to change LogDecimation settings.

  1. Retrieve the configset object from the modelObj, and change the SolverType to expltau.

    modelObj  = sbiomodel('cell');
    configsetObj = getconfigset(modelObj);
    set(configsetObj, 'SolverType', 'expltau')
  2. Change the LogDecimation to 10.

    set(configsetObj.SolverOptions, 'LogDecimation', 10);
    get(configsetObj.SolverOptions, 'LogDecimation')
    
    ans =
    
      10

See Also

ErrorTolerance, RandomState

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS