Constant Ramp
A linear signal generator with varying length depending on the input values.
blockType: Constant Ramp
Path in the library:
|
Description
Block Constant Ramp generates a linearly varying signal:
Where — the slope specified by the scalar parameter Slope, and — intersection with the axis , set by the scalar parameter Offset.
For an undirected vector at the Input, — this is the length of the input vector. For -dimensional array of input signals, the length of the output linear signal is equal to the length of the input signal with the value set by the parameter Ramp length equals number of or Dimension.
The output of y is always an undirected vector.
Ports
Input
Port_1 — input signal
scalar
| vector
| matrix
| multidimensional array
The input signal used to generate a linear signal is given in the form of a scalar, vector, matrix, or - dimensional array.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
, Bool
Parameters
Ramp length equals number of — the value for determining the length of the linear signal
Rows (by default)
| Columns
| Elements in specified dimension
Options for selecting values for determining the length of a 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 set in the Dimension parameter.
Dimension — length of the pass sequence:q[<br>] 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 — slope of the pass signal:q[<br>]1 (by default)
| scalar
The slope of the signal in the form of a real scalar.
Offset — the intersection point of the linear signal with the y pass axis:q[<br>] 0 (by default)
| scalar
The intersection point of the linear signal with the y axis, specified as a real scalar.