Main Content

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

SimBiology.Model methods:

  • adddose — add a dose object to a model object

  • getdose — get dose information from a model object

  • removedose — remove a dose object from a model object

Dose object constructor sbiodose.

SimBiology.ScheduleDose and SimBiology.RepeatDose methods:

  • copyobj — copy a dose object from one model object to another model object

  • get — view properties for a dose object

  • set — define or modify properties for a dose object

Version History

Introduced in R2012b