Skip to Main Content Skip to Search
Product Documentation

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

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS