Skip to Main Content Skip to Search
Product Documentation

getdose (model) - Return SimBiology dose object

Syntax

doseObj = getdose(modelObj)
doseObj = getdose(modelObj, 'DoseName')

Arguments

modelObjSelects a model object that contains a dose object.
DoseNameName of a dose object contained in a model object. DoseName is from the dose object property, Name.

Outputs

doseObjScheduleDose or RepeatDose object retrieved from a model object. A RepeatDose or ScheduleDose object defines an increase (dose) to a species amount during a simulation.

Description

doseObj = getdose(modelObj) returns a Simbiology dose object (doseObj) contained in a Simbiology model object (modelObj).

doseObj = getdose(modelObj, 'DoseName') returns a SimBiology dose object (modelObj) with the name DoseName.

Examples

Get a dose object from a model object.

  1. Create a model object, and then add a dose object to the model object.

    modelObj = sbiomodel('mymodel');
    dose1Obj = adddose(modelObj, 'dose1');
    
  2. Get the dose object from a model object.

    myModelDose = getdose(modelObj);
    

See Also

Model object methods:

Dose object constructor sbiodose.

ScheduleDose object and RepeatDose object methods:

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS