| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimBiology |
| Contents | Index |
| Learn more about SimBiology |
Property to indicate events in a model object. Read-only array of Event objects.
An event defines an action when a defined condition is met. For example, the quantity of a species may double when the quantity of species B is 100. An event is triggered when the conditions specified in the event are met by the model. See Changing Model Component Values Using Events in the SimBiology User's Guide documentation for more information.
Add an event to a Model object with the method addevent method and remove an event with the delete method. See Event object for more information.
You can view event object properties with the get command and modify the properties with the set command.
| Applies to | Object: model |
| Data type | Array of event objects |
| Data values | Event object. The default is [] (empty). |
| Access | Read-only |
Create a model object, and then add an event object.
modelObj = sbmlimport('oscillator')
eventObj = addevent(modelObj, 'time>= 5', 'OpC = 200');Get a list of properties for an event object.
get(modelObj.Events(1));
Or
get(eventObj)
MATLAB displays a list of event properties.
Active: 1
Annotation: ''
EventFcns: {'OpC = 200'}
Name: ''
Notes: ''
Parent: [1x1 SimBiology.Model]
Tag: ''
Trigger: 'time >= 5'
TriggerDelay: 0
TriggerDelayUnits: 'second'
Type: 'event'
UserData: []EventFcns, Event object, Model object, Trigger
![]() | EventFcns | Exponent | ![]() |

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 |