This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Control chart execution with the at operator





at(n,E) returns true only at the nth occurrence of the base event E since activation of the associated state. Otherwise, the operator returns false.

In a chart with no input events, at(n,tick) or at(n,wakeup) returns true if the chart has woken up for the nth time since activation of the associated state.

The at operator resets the counter for E to 0 each time the associated state reactivates.


expand all

A status message on appears at exactly 10 CLK cycles after activation of the state.

on at(10,CLK): status('on');

A transition out of the associated state occurs only on broadcast of a ROTATE event, at exactly 10 CLK cycles after activation of the state.



  • You can use quotation marks to enclose the keywords 'tick' and 'wakeup'. For example, at(5,'tick') is equivalent to at(5,tick).

  • Use of at as an absolute-time temporal logic operator is not supported. Use the after operator instead. For more information, see Use the after Operator to Replace the at Operator.

Introduced in R2014b