EventFcns - Event expression

Description

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.

Characteristics

Applies toObject: event
Data typeCell array of strings
Data valuesEventFcn strings '' (empty)
AccessRead/write

Examples

  1. Create a model object, and then add an event object.

    modelObj = sbmlimport('oscillator');
    eventObj = addevent(modelObj, 'time>= 5', 'OpC = 200');
  2. Set the EventFcns property of the event object.

    set(eventObj, 'EventFcns', {'pA = OpA','mA = pol'});
    
  3. Get the EventFcns property.

    get(eventObj, 'EventFcns')

See Also

Event object, Trigger

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS