Repeating Sequence
Generate arbitrarily shaped periodic signal
Libraries:
Simulink /
Sources
Description
The Repeating Sequence block outputs a periodic scalar signal having a waveform that you specify using the Time values and Output values parameters. The Time values parameter specifies a vector of output times. The Output values parameter specifies a vector of signal amplitudes at the corresponding output times. Together, the two parameters specify a sampling of the output waveform at points measured from the beginning of the interval over which the waveform repeats (the period of the signal).
By default, both parameters are [0 2]
. These default settings specify a
sawtooth waveform that repeats every 2
seconds from the start of the
simulation and has a maximum amplitude of 2
.
Examples
Extended Examples
Ports
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Algorithms
The block sets the input period as the difference between the first and last value of
the Time values parameter. The output at any time
t
is the output at time t = t-n*period
, where
n
is an integer. The sequence repeats at t =
n*period
. The block uses linear interpolation to compute the value of the
waveform between the output times that you specify.
Extended Capabilities
Version History
Introduced before R2006a