Constant Ramp
Linear signal generator with variable length depending on input values.
Description
The Constant Ramp block generates a linearly varying signal:
where m is the slope given by the scalar parameter Slope and b is the intersection with the y axis given by the scalar parameter Offset.
For an undirected input vector, L is the length of the input vector. For an N-dimensional array of input signals, the output linear length L is equal to the length of the input signal with the magnitude given by the Ramp length equals number of or Dimension parameter.
The output signal y is always an undirected vector.
Ports
Parameters
Ramp length equals number of - value to determine the length of the linear signal
Rows (by default)
| Columns
| Elements in specified dimension
Options for selecting the values for determining the length of the linear signal:
-
Rows
- the length of the sequence is equal to the number of rows. -
Columns
- the length of the sequence is equal to the number of columns. -
Elements in specified dimension
- the length of the sequence is specified in the Dimension parameter.
Dimension - sequence length
1 (by default)
| `positive integer'.
Specify the length of the sequence.
Dependencies
To use this parameter, set the Ramp length equals number of parameter to Elements in specified dimension
.
Slope - signal slope
1 (By default)
| scalar
.
Slope of the signal as a real scalar.
Offset - the point of intersection of the linear signal with the y axis
0 (by default)
| scalar
The point of intersection of the linear signal with the y axis, specified as a real scalar.