eventdown

Navigation:  Language Reference > Functions > Event >

eventdown

Previous pageReturn to chapter overviewNext page

Syntax

y = eventdown(x);

Description

y becomes true when x is zero. This function forces the integration algorithm to find the exact point where the input crosses zero from a positive to a negative value. This is called a state event.

Examples

x = sin(time*omega +phi);

y = eventdown(x);

Limitations

y must be a boolean, x must be an expression yielding a scalar.