Skip to Main Content Skip to Search
Product Documentation

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

  


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