Syntax
y = When(u = events [, tl = master_time_period]);
Description
Returns the time periods that start and end when events on u occur. The time periods are truncated by the master_time_period if provided on tl.
For more information, refer to the Periods block.
The Master block can be used to specify the same master period to all time periods of the same model.