Skip to Main Content Skip to Search
Product Documentation

removedose (model) - Add dose object to model

Syntax

doseObj2 = removedose(modelObj, 'DoseName')
doseObj2 = removedose(modelObj, doseObj)

Arguments

modelObjModel object from which you remove a dose object.
DoseNameName of the dose object to remove from a model object. DoseName is the value of the dose object property Name.
doseObjDose object to remove from a model object.

Outputs

doseObj2ScheduleDose or RepeatDose object.

Description

doseObj2 = removedose(modelObj, 'DoseName') removes a SimBiology ScheduleDose or RepeatDose object with the name DoseName from a model object (modelObj). returns the dose object (doseObj), and assigns [] to the dose object property Parent.

You can add a removed dose object back to a model object using the method adddose.

doseObj2 = removedose(modelObj, doseObj) removes a SimBiology ScheduleDose or RepeatDose object doseObj.

Examples

Remove a dose object from a model object.

  1. Create model and dose objects, and then add dose to model.

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

    removedose(mymodel, 'dose1');
    

Get all dose objects from a model object, and then remove the second dose object.

AllDoseObjects = getdose(mymodel);
removedose(mymodel, AllDoseObjects(2));

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