How can I express a state change and a time length in action for requirements table?
Show older comments
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
Midhulesh Vellanki
on 22 Dec 2022
Edited: Midhulesh Vellanki
on 4 Jun 2026
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
Answers (1)
Pat Canny
on 4 Jun 2026
0 votes
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.
Categories
Find more on Model and Validate Requirements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!