Products & Services Solutions Academia Support User Community Company

Learn more about SimBiology   

delete (any object) - Delete SimBiology object

Syntax

delete(Obj)

Arguments

Objabstract kinetic law, configuration set, event, kinetic law, model, parameter, reaction, rule, SimData, species, unit, unit prefix, or variant object.

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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