findUsages (AbstractKineticLaw)

Find out how an AbstractKineticLaw object is used

Description

rxnList= findUsages(aklObj,model) returns a vector of reactions in model that use the AbstractKineticLaw object aklObj. For details of what SimBiology® checks to decide whether an abstract kinetic law is used, see Component Usage.

Input Arguments

collapse all

Abstract kinetic law, specified as a AbstractKineticLaw object.

SimBiology model, specified as a model object, or vector of model objects.

Output Arguments

collapse all

List of reactions that use aklObj, returned as a vector of reaction objects.

Examples

collapse all

Load a sample project.

sbioloadproject gprotein.sbproj

List all reactions in the model that use the MassAction abstract kinetic law.

akl = sbioselect('Type','abstract_kinetic_law','Name','MassAction');
list = findUsages(akl,m1)
list = 
   SimBiology Reaction Array

   Index:    Reaction:              
   1         L + R <-> RL           
   2         Gd + Gbg -> G          
   3         G + RL -> Ga + Gbg + RL
   4         R <-> null             
   5         RL -> null             
   6         Ga -> Gd               

Introduced in R2016b