| SimBiology® | ![]() |
Note sbiorule has been removed and produces an error. Use addrule instead. |
ruleObj = sbiorule('RuleValue')
ruleObj = sbiorule(RuleValue,
'RuleTypeValue')
ruleObj = sbiorule(...'PropertyName', PropertyValue...)
| RuleValue | Enter a character string within quotation marks. For example, enter the algebraic rule 'Va*Ea + Vi*Ei - K2'. |
| RuleTypeValue | Enter 'algebraic', 'initialassignment', 'repeatedAssignment', or 'rate'. See RuleType for more information. |
A SimBiology rule is a mathematical expression that modifies a species amount, or a parameter value. A rule is a MATLAB expression that uses species, and parameters.
ruleObj = sbiorule('RuleValue') creates a rule object, assigns a value (RuleValue) to the property Rule, assigns the value 'algebraic' to the property RuleType, and assigns the root object to the property Parent.
To use ruleObj in a simulation, ruleObj must be added to a model object with the function copyobj. Note that a rule can also be added to a SimBiology model with the addrule function. A model object is constructed with the function sbiomodel.
ruleObj = sbiorule(RuleValue, 'RuleTypeValue') in addition to the above, this syntax enables you to specify RuleType.
ruleObj = sbiorule(...'PropertyName', PropertyValue...) defines
optional properties. The property name/property value pairs can be
in any format supported by the function set (for
example, name-value string pairs, structures, and name-value cell
array pairs).
View additional rule properties with the function get, and modify rule properties with the function set. View the rules in a model (modelObj) with get(modelObj, 'Rules').
| copyobj (any object) | Copy SimBiology object and its children |
| delete (any object) | Delete SimBiology object |
| display (any object) | Display summary of SimBiology object |
| get (any object) | Get object properties |
| set (any object) | Set object properties |
| Active | Indicate object in use during simulation |
| Annotation | Store link to URL or file |
| Name | Specify name of object |
| Notes | HTML text describing SimBiology object |
| Parent | Indicate parent object |
| Rule | Specify species and parameter interactions |
| RuleType | Specify type of rule for rule object |
| Tag | Specify label for SimBiology object |
| Type | Display top-level SimBiology object type |
| UserData | Specify data to associate with object |
Construct a rule object and copy it to a model object.
ruleObj = sbiorule('Enzt - Enzi - Enza)');
modelObj = sbiomodel('cell')
ruleObj_copy = copyobj(ruleObj, modelObj);View the help for the rule object's RuleType property.
help(ruleObj, 'RuleType')
List the properties for a rule.
get(ruleObj)
Active: 1
Annotation: ''
Name: ''
Notes: ''
Parent: []
Rule: 'myrule'
RuleType: 'algebraic'
Tag: ''
Type: 'rule'
UserData: []
![]() | sbioroot | sbiosaveproject | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |