| SimBiology® | ![]() |
Property of the event object that defines what occurs when the event is triggered. Specify a cell array of strings.
EventFcns can be any MATLAB assignment or expression that defines what is executed when the event is triggered. All EventFcn expressions are assignments of the form 'objectname = expression', where objectname is the name of a valid SimBiology object.
For more information about how SimBiology handles events, see How Events Are Evaluated in the SimBiology User's Guide documentation. For examples of event functions, see Specifying Event Functions in the SimBiology User's Guide documentation.
| Applies to | Object: event |
| Data type | Cell array of strings |
| Data values | EventFcn strings '' (empty) |
| Access | Read/write |
Create a model object, and then add an event object.
modelObj = sbmlimport('oscillator');
eventObj = addevent(modelObj, 'time>= 5', 'OpC = 200');Set the EventFcns property of the event object.
set(eventObj, 'EventFcns', {'pA = OpA','mA = pol'});
Get the EventFcns property.
get(eventObj, 'EventFcns')
![]() | ErrorTolerance | Events | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |