delete (any object) - Delete SimBiology® object

Syntax

delete(Obj)

Arguments

ObjSimBiology object: abstract kinetic law, configuration set, kinetic law, model, parameter, reaction, rule, or species.

Description

delete(Obj) removes an object (Obj) from its parent.

You can also delete all model objects from the root with one call to the sbioreset function.

Examples

Example 1

Delete a reaction from a model. Notice, the species objects are not deleted with the reaction object.

modelObj = sbiomodel('cell');
reactionObj = addreaction(modelObj, 'a -> b');
delete(reactionObj)

Example 2

Delete a single model from the root object.

modelObj1 = sbiomodel('cell');
modelObj2 = sbiomodel('virus');
delete(ModelObj2)

See Also

sbiomodel, sbioreset, sbioroot

  


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