Specify a Waveform with the Repeating Sequence Block
This example shows how you specify a waveform with the Repeating Sequence block. In this model, the block defines the Time values parameter as [0:0.1:0.5]
and the Output values parameter as [0 15 25 09 13 17]
. The stop time of the simulation is 0.7
second.
Input period is
0.5
.Output at any time
t
is the output at timet = t-0.5n
, wheren
= 0,1,2, and so on.Sequence repeats at
t = 0.5n
.
At t = 0.5
, the expected output is equal to the output at t = 0
, which is 0
. Therefore, the last value in the Output values parameter vector [0 15 25 09 13 17]
does not appear.