Simulink Reference | ![]() ![]() |
Generate an arbitrarily shaped periodic signal
Library
Description
The Repeating Sequence block outputs a periodic scalar signal having a waveform that you specify. You can specify any waveform, using the block dialog's Time values and Output values parameters. The Times value parameter specifies a vector of sample times. The Output values parameter specifies a vector of signal amplitudes at the corresponding sample 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 (i.e., the signal's period). For example, by default, the Time values and Output values parameters are both set to [0 2]
. This default setting specifies a sawtooth waveform that repeats every 2
seconds from the start of the simulation and has a maximum amplitude of 2
. The Repeating Sequence block uses linear interpolation to compute the value of the waveform between the specified sample points.
Data Type Support
A Repeating Sequence block outputs real signals of type double
.
Parameters and Dialog Box
[0 2]
. [0 2]
.Characteristics
Sample Time |
Continuous |
Scalar Expansion |
No |
Dimensionalized |
No |
Zero Crossing |
No |
![]() | Relay | Reshape | ![]() |