Engee documentation

Constant Ramp

Linear signal generator with variable length depending on input values.

constant ramp

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

Input

Port_1 - input signal
scalar | vector | matrix | multidimensional array

The input signal used to form a linear signal is specified as a scalar, vector, matrix or N-dimensional array.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Output

Port_1 - output signal
vector

Output signal specified as an undirected vector. The block determines the length of the output signal based on the length of the input signal and the Ramp length equals number of or Dimension parameter.

Data types: Float64.

Support for complex numbers: Yes

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.