How can I express a state change and a time length in action for requirements table?

Suppose that I have a requirement in an EARS form like follows:
While state1 = state_operational, when input1 = 1, the system shall satisfy output1 = 2 for at least 2 seconds.
1) Is there a way to express the interruption when the state changes? And what happens with the 2 seconds time in this case?
2) How can I express the "for at least 2 seconds"? I refer to this into the action column of requirements table.

1 Comment

Requirements are plain text. If you are trying to test requirements to show coverage you can use assessments to test that the temporal behavior of your signal. https://www.mathworks.com/help/sltest/ug/temporal-assessments.html

Sign in to comment.

Answers (1)

For advanced temporal constructs, we generally do not recommend use of the Requirements Table. As @Midhulesh Vellanki suggested, the Temporal Assessment is a more flexible feature for this use case.

Products

Release

R2022a

Asked:

on 23 Nov 2022

Edited:

on 4 Jun 2026

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!