removedose (model)
Remove dose object from model
Syntax
doseObj2 = removedose(
modelObj
,
'DoseName
')
doseObj2 = removedose(modelObj
, doseObj
)
Arguments
| Model object from which
you remove a dose object. |
| Name of the dose object to remove from a model object. is
the value of the dose object property Name . |
| Dose object to remove from a model object. |
Outputs
| ScheduleDose or RepeatDose object. |
Description
doseObj2 = removedose(
removes
a SimBiology® ScheduleDose or RepeatDose object with the name modelObj
,
'DoseName
')DoseName
from
a model object (
).
returns the dose object (modelObj
),
and assigns [] to the dose object property doseObj
Parent
.
You can add a removed dose object back to a model object using
the method adddose
.
doseObj2 = removedose(
removes
a SimBiology ScheduleDose or RepeatDose object modelObj
, doseObj
)doseObj
.
Examples
Remove a dose object from a model object.
Create model and dose objects, and then add dose to model.
modelObj = sbiomodel('mymodel'); dose1Obj = adddose(modelObj, 'dose1');
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
SimBiology.Model
methods:
adddose
— add a dose object to a model objectgetdose
— get dose information from a model objectremovedose
— remove a dose object from a model object
Dose object constructor sbiodose
.
SimBiology.ScheduleDose
and SimBiology.RepeatDose
methods:
Version History
Introduced in R2010a